]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rand/rand.h
Audit libcrypto for unchecked return values: fix all cases enountered
[thirdparty/openssl.git] / crypto / rand / rand.h
index ac6c0217636f14d0af801360ae7b0b7ac46fb571..5895d3b6e19415c8f763e58d48050c999e1f7ef1 100644 (file)
@@ -80,10 +80,10 @@ extern "C" {
 
 struct rand_meth_st
        {
-       void (*seed)(const void *buf, int num);
+       int (*seed)(const void *buf, int num);
        int (*bytes)(unsigned char *buf, int num);
        void (*cleanup)(void);
-       void (*add)(const void *buf, int num, double entropy);
+       int (*add)(const void *buf, int num, double entropy);
        int (*pseudorand)(unsigned char *buf, int num);
        int (*status)(void);
        };