projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe6a6d
)
Ensure we initialized the locale before evp_pkey_name2type
author
Dmitry Belyavskiy
<beldmit@gmail.com>
Fri, 22 Apr 2022 16:16:56 +0000
(18:16 +0200)
committer
Matt Caswell
<matt@openssl.org>
Tue, 26 Apr 2022 07:41:12 +0000
(08:41 +0100)
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)
crypto/evp/pmeth_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/pmeth_lib.c
b/crypto/evp/pmeth_lib.c
index 2b9c6c2351da2d2cb94b57e4939bf93288c8f1e7..92d25de44532d6be4c16c1fd47ebf7a378ebb993 100644
(file)
--- 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;