Change rand_pool_add[_end] prototypes to match
authorRichard Levitte <levitte@openssl.org>
Wed, 4 Apr 2018 18:17:50 +0000 (20:17 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Apr 2018 18:47:11 +0000 (20:47 +0200)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5877)

crypto/include/internal/rand_int.h

index e5ae0dfea45c58b11f4121598256f26eeed2d770..baa9bfe47bcbc81800862096c8afd491d06f0d23 100644 (file)
@@ -59,10 +59,10 @@ size_t rand_pool_entropy_needed(RAND_POOL *pool);
 size_t rand_pool_bytes_needed(RAND_POOL *pool, unsigned int entropy_per_byte);
 size_t rand_pool_bytes_remaining(RAND_POOL *pool);
 
-size_t rand_pool_add(RAND_POOL *pool,
-                     const unsigned char *buffer, size_t len, size_t entropy);
+int rand_pool_add(RAND_POOL *pool,
+                  const unsigned char *buffer, size_t len, size_t entropy);
 unsigned char *rand_pool_add_begin(RAND_POOL *pool, size_t len);
-size_t rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy);
+int rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy);
 
 
 /*