cyassl: add support for SSL_set_tlsext_host_name

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45215
master
John Crispin 10 years ago
parent eeff1f0a12
commit b233fdcfa2
  1. 2
      package/libs/cyassl/Makefile
  2. 10
      package/libs/cyassl/patches/300-SSL_set_tlsext_host_name.patch

@ -40,6 +40,8 @@ TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--without-zlib \ --without-zlib \
--enable-singlethreaded \ --enable-singlethreaded \
--enable-opensslextra \
--enable-sni \
--disable-examples --disable-examples
define Build/InstallDev 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" */
Loading…
Cancel
Save