summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand.h
diff options
context:
space:
mode:
authorbeck <>2002-05-15 02:29:21 +0000
committerbeck <>2002-05-15 02:29:21 +0000
commitb64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch)
treefa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libcrypto/rand/rand.h
parente471e1ea98d673597b182ea85f29e30c97cd08b5 (diff)
downloadopenbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libcrypto/rand/rand.h')
-rw-r--r--src/lib/libcrypto/rand/rand.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/lib/libcrypto/rand/rand.h b/src/lib/libcrypto/rand/rand.h
index 9c6052733e..e17aa7a9f7 100644
--- a/src/lib/libcrypto/rand/rand.h
+++ b/src/lib/libcrypto/rand/rand.h
@@ -60,6 +60,7 @@
60#define HEADER_RAND_H 60#define HEADER_RAND_H
61 61
62#include <stdlib.h> 62#include <stdlib.h>
63#include <openssl/ossl_typ.h>
63 64
64#ifdef __cplusplus 65#ifdef __cplusplus
65extern "C" { 66extern "C" {
@@ -79,10 +80,9 @@ typedef struct rand_meth_st
79extern int rand_predictable; 80extern int rand_predictable;
80#endif 81#endif
81 82
82struct engine_st; 83int RAND_set_rand_method(const RAND_METHOD *meth);
83 84const RAND_METHOD *RAND_get_rand_method(void);
84int RAND_set_rand_method(struct engine_st *meth); 85int RAND_set_rand_engine(ENGINE *engine);
85RAND_METHOD *RAND_get_rand_method(void );
86RAND_METHOD *RAND_SSLeay(void); 86RAND_METHOD *RAND_SSLeay(void);
87void RAND_cleanup(void ); 87void RAND_cleanup(void );
88int RAND_bytes(unsigned char *buf,int num); 88int RAND_bytes(unsigned char *buf,int num);
@@ -93,42 +93,34 @@ int RAND_load_file(const char *file,long max_bytes);
93int RAND_write_file(const char *file); 93int RAND_write_file(const char *file);
94const char *RAND_file_name(char *file,size_t num); 94const char *RAND_file_name(char *file,size_t num);
95int RAND_status(void); 95int RAND_status(void);
96int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
96int RAND_egd(const char *path); 97int RAND_egd(const char *path);
97int RAND_egd_bytes(const char *path,int bytes); 98int RAND_egd_bytes(const char *path,int bytes);
98void ERR_load_RAND_strings(void);
99int RAND_poll(void); 99int RAND_poll(void);
100 100
101#ifdef __cplusplus 101#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
102}
103#endif
104
105#if defined(WINDOWS) || defined(WIN32)
106#include <windows.h>
107
108#ifdef __cplusplus
109extern "C" {
110#endif
111 102
112void RAND_screen(void); 103void RAND_screen(void);
113int RAND_event(UINT, WPARAM, LPARAM); 104int RAND_event(UINT, WPARAM, LPARAM);
114 105
115#ifdef __cplusplus
116}
117#endif
118#endif 106#endif
119 107
120/* BEGIN ERROR CODES */ 108/* BEGIN ERROR CODES */
121/* The following lines are auto generated by the script mkerr.pl. Any changes 109/* The following lines are auto generated by the script mkerr.pl. Any changes
122 * made after this point may be overwritten when the script is next run. 110 * made after this point may be overwritten when the script is next run.
123 */ 111 */
112void ERR_load_RAND_strings(void);
124 113
125/* Error codes for the RAND functions. */ 114/* Error codes for the RAND functions. */
126 115
127/* Function codes. */ 116/* Function codes. */
117#define RAND_F_RAND_GET_RAND_METHOD 101
128#define RAND_F_SSLEAY_RAND_BYTES 100 118#define RAND_F_SSLEAY_RAND_BYTES 100
129 119
130/* Reason codes. */ 120/* Reason codes. */
131#define RAND_R_PRNG_NOT_SEEDED 100 121#define RAND_R_PRNG_NOT_SEEDED 100
132 122
123#ifdef __cplusplus
124}
125#endif
133#endif 126#endif
134