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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rand/rand.h b/src/lib/libcrypto/rand/rand.h
index 28f45ec052..2973ee90e4 100644
--- a/src/lib/libcrypto/rand/rand.h
+++ b/src/lib/libcrypto/rand/rand.h
@@ -70,8 +70,13 @@ typedef struct rand_meth_st
70 void (*cleanup)(void); 70 void (*cleanup)(void);
71 void (*add)(const void *buf, int num, double entropy); 71 void (*add)(const void *buf, int num, double entropy);
72 int (*pseudorand)(unsigned char *buf, int num); 72 int (*pseudorand)(unsigned char *buf, int num);
73 int (*status)(void);
73 } RAND_METHOD; 74 } RAND_METHOD;
74 75
76#ifdef BN_DEBUG
77extern int rand_predictable;
78#endif
79
75void RAND_set_rand_method(RAND_METHOD *meth); 80void RAND_set_rand_method(RAND_METHOD *meth);
76RAND_METHOD *RAND_get_rand_method(void ); 81RAND_METHOD *RAND_get_rand_method(void );
77RAND_METHOD *RAND_SSLeay(void); 82RAND_METHOD *RAND_SSLeay(void);
@@ -85,8 +90,10 @@ int RAND_write_file(const char *file);
85const char *RAND_file_name(char *file,int num); 90const char *RAND_file_name(char *file,int num);
86int RAND_status(void); 91int RAND_status(void);
87int RAND_egd(const char *path); 92int RAND_egd(const char *path);
88#ifdef WINDOWS 93#if defined(WINDOWS) || defined(WIN32)
94#include <windows.h>
89void RAND_screen(void); 95void RAND_screen(void);
96int RAND_event(UINT, WPARAM, LPARAM);
90#endif 97#endif
91void ERR_load_RAND_strings(void); 98void ERR_load_RAND_strings(void);
92 99