summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-06-09 23:36:38 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-06-09 23:36:38 +0000
commitff1c55e9833e8bebb05240fafed19c71ffdcc4ce (patch)
treec3783b9aa945aeb8fe138dcea478b020d1f03d09 /crypto/rand
parent835d104f46c4448a27844a9309de456c7972a943 (diff)
Revert "version skew" patches that break FIPS compilation
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/rand_lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 89c8a38146..daf1dab973 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -235,12 +235,14 @@ static size_t drbg_get_adin(DRBG_CTX *ctx, unsigned char **pout)
static int drbg_rand_add(DRBG_CTX *ctx, const void *in, int inlen,
double entropy)
{
- return RAND_SSLeay()->add(in, inlen, entropy);
+ RAND_SSLeay()->add(in, inlen, entropy);
+ return 1;
}
static int drbg_rand_seed(DRBG_CTX *ctx, const void *in, int inlen)
{
- return RAND_SSLeay()->seed(in, inlen);
+ RAND_SSLeay()->seed(in, inlen);
+ return 1;
}
#ifndef OPENSSL_DRBG_DEFAULT_TYPE