X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Frand%2Frand.h;h=e17aa7a9f731fbcaa5f4d17867414e3081c182f0;hp=d4d8fbe9102a56fc522330499b7f9b95bfebad0f;hb=2aa9043ad33776323393f82c8a542d46bdedc34d;hpb=627774fd877b9aae249d937afa214d87d8964ae1 diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index d4d8fbe910..e17aa7a9f7 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -59,13 +59,8 @@ #ifndef HEADER_RAND_H #define HEADER_RAND_H -#include - -#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) -#include -#else -#include -#endif +#include +#include #ifdef __cplusplus extern "C" { @@ -85,10 +80,9 @@ typedef struct rand_meth_st extern int rand_predictable; #endif -struct engine_st; - -int RAND_set_rand_method(struct engine_st *meth); -RAND_METHOD *RAND_get_rand_method(void ); +int RAND_set_rand_method(const RAND_METHOD *meth); +const RAND_METHOD *RAND_get_rand_method(void); +int RAND_set_rand_engine(ENGINE *engine); RAND_METHOD *RAND_SSLeay(void); void RAND_cleanup(void ); int RAND_bytes(unsigned char *buf,int num); @@ -102,7 +96,6 @@ int RAND_status(void); int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); int RAND_egd(const char *path); int RAND_egd_bytes(const char *path,int bytes); -void ERR_load_RAND_strings(void); int RAND_poll(void); #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) @@ -112,22 +105,22 @@ int RAND_event(UINT, WPARAM, LPARAM); #endif -#ifdef __cplusplus -} -#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_RAND_GET_RAND_METHOD 101 #define RAND_F_SSLEAY_RAND_BYTES 100 /* Reason codes. */ #define RAND_R_PRNG_NOT_SEEDED 100 +#ifdef __cplusplus +} +#endif #endif -