diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2022-04-22 18:16:56 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-04-26 08:41:12 +0100 |
commit | ac844f7ca8a15ac6727f113335f5a54b8c0ef7cf (patch) | |
tree | 68926e2c6bebe4ab271d35110f9ef4a80bea59e1 /crypto/evp | |
parent | cfe6a6d28adb4d5a42660126fe58163cbea10ef8 (diff) |
Ensure we initialized the locale before evp_pkey_name2type
Fixes #18158
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18175)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 2b9c6c2351..92d25de445 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -27,6 +27,7 @@ #ifndef FIPS_MODULE # include "crypto/asn1.h" #endif +#include "crypto/ctype.h" #include "crypto/evp.h" #include "crypto/dh.h" #include "crypto/ec.h" @@ -199,6 +200,7 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx, } #ifndef FIPS_MODULE if (keytype != NULL) { + ossl_init_casecmp(); id = evp_pkey_name2type(keytype); if (id == NID_undef) id = -1; |