From 069e3184359c76f8bb4aa3e7c62a69d571b478ac Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Nov 2021 09:44:05 +0000 Subject: SNI matches are case-insensitive Signed-off-by: Laurent Bercot --- src/sbearssl/sbearssl_sni_policy_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sbearssl') diff --git a/src/sbearssl/sbearssl_sni_policy_init.c b/src/sbearssl/sbearssl_sni_policy_init.c index 3446f35..e03c15a 100644 --- a/src/sbearssl/sbearssl_sni_policy_init.c +++ b/src/sbearssl/sbearssl_sni_policy_init.c @@ -1,6 +1,6 @@ /* ISC license. */ -#include +#include #include @@ -20,7 +20,7 @@ static void *sbearssl_sni_policy_node_dtok (uint32_t d, void *data) static int sbearssl_sni_policy_node_cmp (void const *a, void const *b, void *data) { (void)data ; - return strcmp((char const *)a, (char const *)b) ; + return strcasecmp((char const *)a, (char const *)b) ; } void sbearssl_sni_policy_init (sbearssl_sni_policy_context *pol) -- cgit v1.2.3