diff options
-rw-r--r-- | src/sbearssl/sbearssl_sni_policy_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <string.h> +#include <strings.h> #include <bearssl.h> @@ -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) |