summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rand/rand.h')
-rw-r--r--src/lib/libcrypto/rand/rand.h31
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 @@
63extern "C" { 63extern "C" {
64#endif 64#endif
65 65
66#ifndef NOPROTO 66typedef 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
73void RAND_set_rand_method(RAND_METHOD *meth);
74RAND_METHOD *RAND_get_rand_method(void );
75RAND_METHOD *RAND_SSLeay(void);
67void RAND_cleanup(void ); 76void RAND_cleanup(void );
68void RAND_bytes( unsigned char *buf,int num); 77void RAND_bytes(unsigned char *buf,int num);
69void RAND_seed( unsigned char *buf,int num); 78void RAND_seed(const void *buf,int num);
70int RAND_load_file(char *file,long max_bytes); 79int RAND_load_file(const char *file,long max_bytes);
71int RAND_write_file(char *file); 80int RAND_write_file(const char *file);
72char *RAND_file_name(char *file,int num); 81char *RAND_file_name(char *file,int num);
73#ifdef WINDOWS 82#ifdef WINDOWS
74void RAND_screen(void); 83void RAND_screen(void);
75#endif 84#endif
76#else
77void RAND_cleanup();
78void RAND_bytes();
79void RAND_seed();
80int RAND_load_file();
81int RAND_write_file();
82char *RAND_file_name();
83#ifdef WINDOWS
84void RAND_screen();
85#endif
86#endif
87
88#ifdef __cplusplus 85#ifdef __cplusplus
89} 86}
90#endif 87#endif