diff options
author | marino <marino@FreeBSD.org> | 2017-01-12 22:30:37 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2017-01-12 22:30:37 +0800 |
commit | d2c662bfd39fece7c3cba691c8bef0e1ad8819d9 (patch) | |
tree | a87f978b831db80d284ad5b8931749c74fa4ec52 /net | |
parent | ac05b10ce6d167460c95bc795439367433d35d15 (diff) | |
download | freebsd-ports-gnome-d2c662bfd39fece7c3cba691c8bef0e1ad8819d9.tar.gz freebsd-ports-gnome-d2c662bfd39fece7c3cba691c8bef0e1ad8819d9.tar.zst freebsd-ports-gnome-d2c662bfd39fece7c3cba691c8bef0e1ad8819d9.zip |
net/softethervpn: Fix build with LibreSSL
Approved by: SSL blanket
Diffstat (limited to 'net')
-rw-r--r-- | net/softethervpn/Makefile | 3 | ||||
-rw-r--r-- | net/softethervpn/files/patch-src_Mayaqua_Network.c | 14 |
2 files changed, 16 insertions, 1 deletions
diff --git a/net/softethervpn/Makefile b/net/softethervpn/Makefile index 0e4356896d00..1c3ec4914e98 100644 --- a/net/softethervpn/Makefile +++ b/net/softethervpn/Makefile @@ -10,7 +10,8 @@ COMMENT= Cross-platform Multi-protocol VPN Software LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= gmake iconv localbase readline ssl +USES= dos2unix gmake iconv localbase readline ssl +DOS2UNIX_FILES= src/Mayaqua/Network.c USE_GITHUB= yes GH_ACCOUNT= SoftEtherVPN GH_PROJECT= SoftEtherVPN diff --git a/net/softethervpn/files/patch-src_Mayaqua_Network.c b/net/softethervpn/files/patch-src_Mayaqua_Network.c new file mode 100644 index 000000000000..68d0bb575b99 --- /dev/null +++ b/net/softethervpn/files/patch-src_Mayaqua_Network.c @@ -0,0 +1,14 @@ +--- src/Mayaqua/Network.c.orig 2017-01-12 14:15:02 UTC ++++ src/Mayaqua/Network.c +@@ -12983,7 +12983,11 @@ bool StartSSLEx(SOCK *sock, X *x, K *pri + { + if (client_tls == false) + { ++#ifndef OPENSSL_NO_SSL3_METHOD + SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method()); ++#else ++ SSL_CTX_set_ssl_version(ssl_ctx, SSLv23_method()); ++#endif + } + else + { |