diff options
author | Pauli <pauli@openssl.org> | 2023-08-02 10:44:47 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-08-04 11:58:09 +1000 |
commit | cea699c512bf1e3a22edae2715cb993c7953eb91 (patch) | |
tree | d99923084dc4100d0026b3d09e79fbd2507b6bd7 /crypto/asn1/a_strnid.c | |
parent | 4a4d84a976e00ed50f2bcfc4a4e7a9b48ba36e2f (diff) | |
download | openssl-cea699c512bf1e3a22edae2715cb993c7953eb91.zip openssl-cea699c512bf1e3a22edae2715cb993c7953eb91.tar.gz openssl-cea699c512bf1e3a22edae2715cb993c7953eb91.tar.bz2 |
no_autoload: make the no-autoload-config option work again.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621)
(cherry picked from commit cb8e64131e7ce230a9268bdd7cc4664868ff0dc9)
Diffstat (limited to 'crypto/asn1/a_strnid.c')
-rw-r--r-- | crypto/asn1/a_strnid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/a_strnid.c b/crypto/asn1/a_strnid.c index 9e54db9..c960daf 100644 --- a/crypto/asn1/a_strnid.c +++ b/crypto/asn1/a_strnid.c @@ -129,8 +129,10 @@ ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid) int idx; ASN1_STRING_TABLE fnd; +#ifndef OPENSSL_NO_AUTOLOAD_CONFIG /* "stable" can be impacted by config, so load the config file first */ OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); +#endif fnd.nid = nid; if (stable) { |