openwrtv3/package/libs/cyassl/patches/300-SSL_set_tlsext_host_name.patch
John Crispin b233fdcfa2 cyassl: add support for SSL_set_tlsext_host_name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45215
2015-04-01 10:42:28 +00:00

10 lines
279 B
Diff

--- a/cyassl/openssl/ssl.h
+++ b/cyassl/openssl/ssl.h
@@ -372,6 +373,7 @@
#define SSL_CTX_get_ex_new_index CyaSSL_CTX_get_ex_new_index
+#define SSL_set_tlsext_host_name(x, y) CyaSSL_UseSNI(x, CYASSL_SNI_HOST_NAME, y, strlen(y))
#ifdef __cplusplus
} /* extern "C" */