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/asn1/a_strnid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto/asn1') diff --git a/crypto/asn1/a_strnid.c b/crypto/asn1/a_strnid.c index 209e1ed491..630ac19259 100644 --- a/crypto/asn1/a_strnid.c +++ b/crypto/asn1/a_strnid.c @@ -129,6 +129,9 @@ ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid) int idx; ASN1_STRING_TABLE fnd; + /* "stable" can be impacted by config, so load the config file first */ + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); + fnd.nid = nid; if (stable) { idx = sk_ASN1_STRING_TABLE_find(stable, &fnd); -- cgit v1.2.3