mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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
This commit is contained in:
parent
3cee5910ac
commit
3c89fdb52e
1 changed files with 2 additions and 2 deletions
|
@ -343,9 +343,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
|
||||
|
|
Loading…
Add table
Reference in a new issue