AFAICS lst1 stands for "lshift test" not "list".
[oweals/openssl.git] / crypto / rand / rand.h
index fd8ee38366f0b9df32b2c543ebe0d3023acb3c40..5ab94a779b5ba722e93c84a851175724ad35f232 100644 (file)
@@ -66,24 +66,43 @@ extern "C" {
 typedef struct rand_meth_st
        {
        void (*seed)(const void *buf, int num);
-       void (*bytes)(unsigned char *buf, int num);
+       int (*bytes)(unsigned char *buf, int num);
        void (*cleanup)(void);
+       void (*add)(const void *buf, int num, int entropy);
+       int (*pseudorand)(unsigned char *buf, int num);
        } RAND_METHOD;
 
 void RAND_set_rand_method(RAND_METHOD *meth);
 RAND_METHOD *RAND_get_rand_method(void );
 RAND_METHOD *RAND_SSLeay(void);
 void RAND_cleanup(void );
-void RAND_bytes(unsigned char *buf,int num);
+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);
 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);
 #ifdef WINDOWS
 void RAND_screen(void);
 #endif
+void   ERR_load_RAND_strings(void);
+
+/* BEGIN ERROR CODES */
+/* The following lines are auto generated by the script mkerr.pl. Any changes
+ * made after this point may be overwritten when the script is next run.
+ */
+
+/* Error codes for the RAND functions. */
+
+/* Function codes. */
+#define RAND_F_SSLEAY_RAND_BYTES                        100
+
+/* Reason codes. */
+#define RAND_R_PRNG_NOT_SEEDED                          100
+
 #ifdef  __cplusplus
 }
 #endif
-
 #endif
+