X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Frand%2Frand.h;h=28f45ec05269965e4a9b37819b16787016932a7d;hb=8d5b4ee1cab7cd02f9fe246fb60d7d018a315a86;hp=5ab94a779b5ba722e93c84a851175724ad35f232;hpb=373b575f5a7b509bbadd67b1d57eef57dd23357a;p=oweals%2Fopenssl.git diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index 5ab94a779b..28f45ec052 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -68,7 +68,7 @@ typedef struct rand_meth_st void (*seed)(const void *buf, int num); int (*bytes)(unsigned char *buf, int num); void (*cleanup)(void); - void (*add)(const void *buf, int num, int entropy); + void (*add)(const void *buf, int num, double entropy); int (*pseudorand)(unsigned char *buf, int num); } RAND_METHOD; @@ -79,10 +79,12 @@ void RAND_cleanup(void ); int RAND_bytes(unsigned char *buf,int num); int RAND_pseudo_bytes(unsigned char *buf,int num); void RAND_seed(const void *buf,int num); -void RAND_add(const void *buf,int num,int entropy); +void RAND_add(const void *buf,int num,double entropy); int RAND_load_file(const char *file,long max_bytes); int RAND_write_file(const char *file); -char *RAND_file_name(char *file,int num); +const char *RAND_file_name(char *file,int num); +int RAND_status(void); +int RAND_egd(const char *path); #ifdef WINDOWS void RAND_screen(void); #endif