forked from Lainports/freebsd-ports
As security/softether and -devel are created and maintained by different people for a long time, there was a lot of difference between and no consistency between both ports. I grab both ports and renew this port based on security/softether. Now there're least differences such as VERSION, COMMENT, CONFLICTS between both. To make both ports consistent, I quit fetching from GitHub. Using upstream site[1] instead. Upstream distributes -rtm and -beta suffixed tarballs. -rtm corresponds to security/softether, -beta does to security/softether-devel now. [1] https://www.softether-download.com/ Approved by: mentors (implicit)
19 lines
510 B
C
19 lines
510 B
C
--- src/Mayaqua/Network.c.orig 2016-05-03 06:16:53 UTC
|
|
+++ src/Mayaqua/Network.c
|
|
@@ -13025,10 +13025,15 @@
|
|
{
|
|
if (client_tls == false)
|
|
{
|
|
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
+#ifndef OPENSSL_NO_SSL3
|
|
SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method());
|
|
#else
|
|
SSL_CTX_set_ssl_version(ssl_ctx, SSLv23_method());
|
|
+ SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_TLSv1
|
|
+#ifdef SSL_OP_NO_TLSv1_2
|
|
+ | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2
|
|
+#endif
|
|
+ );
|
|
#endif
|
|
}
|
|
else
|