# include <stdlib.h>
# include <openssl/ossl_typ.h>
# include <openssl/e_os2.h>
-
-# if defined(OPENSSL_SYS_WINDOWS)
-# include <windows.h>
-# endif
+# include <openssl/randerr.h>
#ifdef __cplusplus
extern "C" {
# endif
int RAND_poll(void);
-# if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
-
-void RAND_screen(void);
-int RAND_event(UINT, WPARAM, LPARAM);
-
-# endif
-
-/* BEGIN ERROR CODES */
-/*
- * The following lines are auto generated by the script mkerr.pl. Any changes
- * made after this point may be overwritten when the script is next run.
- */
-void ERR_load_RAND_strings(void);
-
-/* Error codes for the RAND functions. */
-
-/* Function codes. */
-# define RAND_F_FIPS_RAND 102
-# define RAND_F_FIPS_RAND_SET_DT 103
-# define RAND_F_FIPS_SET_PRNG_SEED 104
-# define RAND_F_FIPS_SET_TEST_MODE 105
-# define RAND_F_FIPS_X931_SET_DT 106
-# define RAND_F_RAND_BYTES 100
-# define RAND_F_RAND_GET_RAND_METHOD 101
+#if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
+/* application has to include <windows.h> in order to use these */
+DEPRECATEDIN_1_1_0(void RAND_screen(void))
+DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))
+#endif
-/* Reason codes. */
-# define RAND_R_NOT_IN_TEST_MODE 101
-# define RAND_R_NO_KEY_SET 102
-# define RAND_R_PRNG_ERROR 103
-# define RAND_R_PRNG_KEYED 104
-# define RAND_R_PRNG_NOT_SEEDED 100
-# define RAND_R_PRNG_SEED_MUST_NOT_MATCH_KEY 105
-# define RAND_R_PRNG_STUCK 106
+int ERR_load_RAND_strings(void);
-#ifdef __cplusplus
+# ifdef __cplusplus
}
-#endif
+# endif
#endif