diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rand/rand.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/src/lib/libcrypto/rand/rand.h b/src/lib/libcrypto/rand/rand.h index 477d7a150a..fd8ee38366 100644 --- a/src/lib/libcrypto/rand/rand.h +++ b/src/lib/libcrypto/rand/rand.h | |||
| @@ -63,28 +63,25 @@ | |||
| 63 | extern "C" { | 63 | extern "C" { |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | #ifndef NOPROTO | 66 | typedef struct rand_meth_st |
| 67 | { | ||
| 68 | void (*seed)(const void *buf, int num); | ||
| 69 | void (*bytes)(unsigned char *buf, int num); | ||
| 70 | void (*cleanup)(void); | ||
| 71 | } RAND_METHOD; | ||
| 72 | |||
| 73 | void RAND_set_rand_method(RAND_METHOD *meth); | ||
| 74 | RAND_METHOD *RAND_get_rand_method(void ); | ||
| 75 | RAND_METHOD *RAND_SSLeay(void); | ||
| 67 | void RAND_cleanup(void ); | 76 | void RAND_cleanup(void ); |
| 68 | void RAND_bytes( unsigned char *buf,int num); | 77 | void RAND_bytes(unsigned char *buf,int num); |
| 69 | void RAND_seed( unsigned char *buf,int num); | 78 | void RAND_seed(const void *buf,int num); |
| 70 | int RAND_load_file(char *file,long max_bytes); | 79 | int RAND_load_file(const char *file,long max_bytes); |
| 71 | int RAND_write_file(char *file); | 80 | int RAND_write_file(const char *file); |
| 72 | char *RAND_file_name(char *file,int num); | 81 | char *RAND_file_name(char *file,int num); |
| 73 | #ifdef WINDOWS | 82 | #ifdef WINDOWS |
| 74 | void RAND_screen(void); | 83 | void RAND_screen(void); |
| 75 | #endif | 84 | #endif |
| 76 | #else | ||
| 77 | void RAND_cleanup(); | ||
| 78 | void RAND_bytes(); | ||
| 79 | void RAND_seed(); | ||
| 80 | int RAND_load_file(); | ||
| 81 | int RAND_write_file(); | ||
| 82 | char *RAND_file_name(); | ||
| 83 | #ifdef WINDOWS | ||
| 84 | void RAND_screen(); | ||
| 85 | #endif | ||
| 86 | #endif | ||
| 87 | |||
| 88 | #ifdef __cplusplus | 85 | #ifdef __cplusplus |
| 89 | } | 86 | } |
| 90 | #endif | 87 | #endif |
