From 43a1e83394bf06689b966402e7d4378685d05fbc Mon Sep 17 00:00:00 2001 From: Kenneth Mastro Date: Wed, 6 Oct 2021 06:25:03 +0100 Subject: [PATCH] wolfssl: adapt SNI for recent changes It seems WOLFSSL_SNI_HOST_NAME is an enum in later wolfssl, use the wolfssl define HAVE_SNI as well --- lib/tls/openssl/openssl-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tls/openssl/openssl-client.c b/lib/tls/openssl/openssl-client.c index 926e70a74..6b727286e 100644 --- a/lib/tls/openssl/openssl-client.c +++ b/lib/tls/openssl/openssl-client.c @@ -267,9 +267,9 @@ lws_ssl_client_bio_create(struct lws *wsi) strlen(hostname)); #endif #else -#ifdef WOLFSSL_SNI_HOST_NAME +#if defined(WOLFSSL_SNI_HOST_NAME) || defined(HAVE_SNI) wolfSSL_UseSNI(wsi->tls.ssl, WOLFSSL_SNI_HOST_NAME, hostname, - strlen(hostname)); + (unsigned short)strlen(hostname)); #endif #endif #else