Browse Source

Merge pull request #3724 from fededim/master

softethervpn: updated to version 4.22-9634
lilik-openwrt-22.03
Hannu Nyman 8 years ago
committed by GitHub
parent
commit
07052a6b9c
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      net/softethervpn/patches/105-nossl3.patch

+ 33
- 0
net/softethervpn/patches/105-nossl3.patch View File

@ -0,0 +1,33 @@
Index: v4.22-9634/src/Mayaqua/Network.c
===================================================================
--- v4.22-9634.orig/src/Mayaqua/Network.c
+++ v4.22-9634/src/Mayaqua/Network.c
@@ -13013,20 +13013,28 @@ bool StartSSLEx(SOCK *sock, X *x, K *pri
}
else
{
+#ifndef SSL_OP_NO_SSLv3
if (client_tls == false)
{
SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method());
}
else
{
+#endif // SSL_OP_NO_SSLv3
SSL_CTX_set_ssl_version(ssl_ctx, SSLv23_client_method());
+#ifndef SSL_OP_NO_SSLv3
}
+#endif // SSL_OP_NO_SSLv3
}
sock->ssl = SSL_new(ssl_ctx);
SSL_set_fd(sock->ssl, (int)sock->socket);
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
+#ifndef SSL_OP_NO_SSLv3
if (sock->ServerMode == false && client_tls)
+#else
+ if (sock->ServerMode == false)
+#endif // SSL_OP_NO_SSLv3
{
if (IsEmptyStr(sni_hostname) == false)
{

Loading…
Cancel
Save