diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rand/rand.h | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/src/lib/libcrypto/rand/rand.h b/src/lib/libcrypto/rand/rand.h index 9c6052733e..e17aa7a9f7 100644 --- a/src/lib/libcrypto/rand/rand.h +++ b/src/lib/libcrypto/rand/rand.h | |||
| @@ -60,6 +60,7 @@ | |||
| 60 | #define HEADER_RAND_H | 60 | #define HEADER_RAND_H |
| 61 | 61 | ||
| 62 | #include <stdlib.h> | 62 | #include <stdlib.h> |
| 63 | #include <openssl/ossl_typ.h> | ||
| 63 | 64 | ||
| 64 | #ifdef __cplusplus | 65 | #ifdef __cplusplus |
| 65 | extern "C" { | 66 | extern "C" { |
| @@ -79,10 +80,9 @@ typedef struct rand_meth_st | |||
| 79 | extern int rand_predictable; | 80 | extern int rand_predictable; |
| 80 | #endif | 81 | #endif |
| 81 | 82 | ||
| 82 | struct engine_st; | 83 | int RAND_set_rand_method(const RAND_METHOD *meth); |
| 83 | 84 | const RAND_METHOD *RAND_get_rand_method(void); | |
| 84 | int RAND_set_rand_method(struct engine_st *meth); | 85 | int RAND_set_rand_engine(ENGINE *engine); |
| 85 | RAND_METHOD *RAND_get_rand_method(void ); | ||
| 86 | RAND_METHOD *RAND_SSLeay(void); | 86 | RAND_METHOD *RAND_SSLeay(void); |
| 87 | void RAND_cleanup(void ); | 87 | void RAND_cleanup(void ); |
| 88 | int RAND_bytes(unsigned char *buf,int num); | 88 | int RAND_bytes(unsigned char *buf,int num); |
| @@ -93,42 +93,34 @@ int RAND_load_file(const char *file,long max_bytes); | |||
| 93 | int RAND_write_file(const char *file); | 93 | int RAND_write_file(const char *file); |
| 94 | const char *RAND_file_name(char *file,size_t num); | 94 | const char *RAND_file_name(char *file,size_t num); |
| 95 | int RAND_status(void); | 95 | int RAND_status(void); |
| 96 | int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); | ||
| 96 | int RAND_egd(const char *path); | 97 | int RAND_egd(const char *path); |
| 97 | int RAND_egd_bytes(const char *path,int bytes); | 98 | int RAND_egd_bytes(const char *path,int bytes); |
| 98 | void ERR_load_RAND_strings(void); | ||
| 99 | int RAND_poll(void); | 99 | int RAND_poll(void); |
| 100 | 100 | ||
| 101 | #ifdef __cplusplus | 101 | #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) |
| 102 | } | ||
| 103 | #endif | ||
| 104 | |||
| 105 | #if defined(WINDOWS) || defined(WIN32) | ||
| 106 | #include <windows.h> | ||
| 107 | |||
| 108 | #ifdef __cplusplus | ||
| 109 | extern "C" { | ||
| 110 | #endif | ||
| 111 | 102 | ||
| 112 | void RAND_screen(void); | 103 | void RAND_screen(void); |
| 113 | int RAND_event(UINT, WPARAM, LPARAM); | 104 | int RAND_event(UINT, WPARAM, LPARAM); |
| 114 | 105 | ||
| 115 | #ifdef __cplusplus | ||
| 116 | } | ||
| 117 | #endif | ||
| 118 | #endif | 106 | #endif |
| 119 | 107 | ||
| 120 | /* BEGIN ERROR CODES */ | 108 | /* BEGIN ERROR CODES */ |
| 121 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 109 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 122 | * made after this point may be overwritten when the script is next run. | 110 | * made after this point may be overwritten when the script is next run. |
| 123 | */ | 111 | */ |
| 112 | void ERR_load_RAND_strings(void); | ||
| 124 | 113 | ||
| 125 | /* Error codes for the RAND functions. */ | 114 | /* Error codes for the RAND functions. */ |
| 126 | 115 | ||
| 127 | /* Function codes. */ | 116 | /* Function codes. */ |
| 117 | #define RAND_F_RAND_GET_RAND_METHOD 101 | ||
| 128 | #define RAND_F_SSLEAY_RAND_BYTES 100 | 118 | #define RAND_F_SSLEAY_RAND_BYTES 100 |
| 129 | 119 | ||
| 130 | /* Reason codes. */ | 120 | /* Reason codes. */ |
| 131 | #define RAND_R_PRNG_NOT_SEEDED 100 | 121 | #define RAND_R_PRNG_NOT_SEEDED 100 |
| 132 | 122 | ||
| 123 | #ifdef __cplusplus | ||
| 124 | } | ||
| 125 | #endif | ||
| 133 | #endif | 126 | #endif |
| 134 | |||
