mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
cyassl: add support for SSL_set_tlsext_host_name
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45215 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -40,6 +40,8 @@ TARGET_CFLAGS += $(FPIC)
|
||||
CONFIGURE_ARGS += \
|
||||
--without-zlib \
|
||||
--enable-singlethreaded \
|
||||
--enable-opensslextra \
|
||||
--enable-sni \
|
||||
--disable-examples
|
||||
|
||||
define Build/InstallDev
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
--- 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" */
|
||||
Reference in New Issue
Block a user