From 8a749ced784d9c8c172811b029b8f453c5910db9 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 18 Apr 2016 18:21:36 -0500 Subject: [PATCH] Check HCRYPTO_FALLBACK in ossl backend --- lib/hcrypto/evp-openssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hcrypto/evp-openssl.c b/lib/hcrypto/evp-openssl.c index 66cbf4344..cf9f03419 100644 --- a/lib/hcrypto/evp-openssl.c +++ b/lib/hcrypto/evp-openssl.c @@ -205,7 +205,9 @@ get_EVP_CIPHER_once_cb(void *d) ossl_evp = EVP_get_cipherbynid(arg->nid); if (ossl_evp == NULL) { (void) memset(hc_evp, 0, sizeof(*hc_evp)); +#if HCRYPTO_FALLBACK *arg->hc_memoizep = arg->fallback; +#endif return; } @@ -347,7 +349,9 @@ get_EVP_MD_once_cb(void *d) if (ossl_evp == NULL) { (void) memset(hc_evp, 0, sizeof(*hc_evp)); +#if HCRYPTO_FALLBACK *arg->hc_memoizep = arg->fallback; +#endif return; }