summaryrefslogtreecommitdiffstats
path: root/crypto/context.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2022-04-13 12:32:14 +0200
committerDmitry Belyavskiy <beldmit@gmail.com>2022-04-21 17:12:31 +0200
commit130de70e0f85ecec08fcfe4daed1d0c491089ea6 (patch)
tree2a0da8004ede970436f3888d632c42f09ecdbb93 /crypto/context.c
parent455e158ef9b3b600738f5b01190c2b7083d3d0ba (diff)
Public API functions OPENSSL_str[n]casecmp
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18103)
Diffstat (limited to 'crypto/context.c')
-rw-r--r--crypto/context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/context.c b/crypto/context.c
index 3333af4c53..4fef24cadd 100644
--- a/crypto/context.c
+++ b/crypto/context.c
@@ -14,6 +14,7 @@
#include "internal/core.h"
#include "internal/bio.h"
#include "internal/provider.h"
+#include "crypto/ctype.h"
struct ossl_lib_ctx_onfree_list_st {
ossl_lib_ctx_onfree_fn *fn;
@@ -150,7 +151,8 @@ static CRYPTO_THREAD_LOCAL default_context_thread_local;
DEFINE_RUN_ONCE_STATIC(default_context_do_init)
{
return CRYPTO_THREAD_init_local(&default_context_thread_local, NULL)
- && context_init(&default_context_int);
+ && context_init(&default_context_int)
+ && ossl_init_casecmp();
}
void ossl_lib_ctx_default_deinit(void)