From b0700d2c8de79252ba605748a075cf2e5d670da1 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 27 Oct 2015 15:11:48 -0400 Subject: Replace "SSLeay" in API with OpenSSL All instances of SSLeay (any combination of case) were replaced with the case-equivalent OpenSSL. Reviewed-by: Richard Levitte --- crypto/rand/rand_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crypto/rand/rand_lib.c') diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 102ed05f69..55c90cc4bf 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -104,7 +104,7 @@ const RAND_METHOD *RAND_get_rand_method(void) funct_ref = e; else #endif - default_RAND_meth = RAND_SSLeay(); + default_RAND_meth = RAND_OpenSSL(); } return default_RAND_meth; } @@ -197,7 +197,7 @@ static size_t drbg_get_entropy(DRBG_CTX *ctx, unsigned char **pout, *pout = OPENSSL_malloc(min_len); if (!*pout) return 0; - if (RAND_SSLeay()->bytes(*pout, min_len) <= 0) { + if (RAND_OpenSSL()->bytes(*pout, min_len) <= 0) { OPENSSL_free(*pout); *pout = NULL; return 0; @@ -234,12 +234,12 @@ 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); + return RAND_OpenSSL()->add(in, inlen, entropy); } static int drbg_rand_seed(DRBG_CTX *ctx, const void *in, int inlen) { - return RAND_SSLeay()->seed(in, inlen); + return RAND_OpenSSL()->seed(in, inlen); } int RAND_init_fips(void) -- cgit v1.2.3