ustream-ssl: update to the latest version, adds cyassl/wolfssl fixes
[openwrt/openwrt.git] / package / libs / cyassl / patches / 300-debloat_move_SSL_set_tlsext_host_name_outside_STUNNEL.patch
1 --- a/wolfssl/openssl/ssl.h
2 +++ b/wolfssl/openssl/ssl.h
3 @@ -402,6 +402,8 @@ typedef WOLFSSL_X509_STORE_CTX X509_STOR
4 /* yassl had set the default to be 500 */
5 #define SSL_get_default_timeout(ctx) 500
6
7 +#define SSL_set_tlsext_host_name(x, y) wolfSSL_UseSNI(x, WOLFSSL_SNI_HOST_NAME, y, strlen(y))
8 +
9 /* Lighthttp compatibility */
10
11 #ifdef HAVE_LIGHTY
12 @@ -488,7 +490,6 @@ typedef WOLFSSL_ASN1_BIT_STRING ASN1_
13 #define SSL_TLSEXT_ERR_NOACK alert_warning
14 #define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME
15
16 -#define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name
17 #define SSL_get_servername wolfSSL_get_servername
18 #define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX
19 #define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback