From 29dc6e00f2a1ec93bbacc5127cecf3412e95e57f Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 30 Jul 2019 16:42:53 +0100 Subject: Load the config file by default Previously we only loaded the config file by default for libssl. Now we do it for libcrypto too. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9492) --- crypto/property/property.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/property') diff --git a/crypto/property/property.c b/crypto/property/property.c index cab2ab243e..c3fa8df9c6 100644 --- a/crypto/property/property.c +++ b/crypto/property/property.c @@ -279,6 +279,10 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, int ret = 0; int j, best = -1, score, optional; +#ifndef FIPS_MODE + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); +#endif + if (nid <= 0 || method == NULL || store == NULL) return 0; -- cgit v1.2.3