diff options
author | Matt Caswell <matt@openssl.org> | 2019-07-30 16:42:53 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-08-01 09:59:20 +0100 |
commit | 29dc6e00f2a1ec93bbacc5127cecf3412e95e57f (patch) | |
tree | e14982624eb7d057b64d73fdc7a617f49a0ff178 /crypto/asn1 | |
parent | 988b29850b9e7b2b21d680545aeed76273a42a16 (diff) |
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 <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9492)
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/a_strnid.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |