aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-04-27 22:57:48 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-04-27 22:57:48 +0800
commitfca248e641783a12cccc11a370e68690ac8be9c8 (patch)
tree6e2a777ded8c3d699eb8cedfc82744b91c9b160f /www
parent49d51f09ce022874e245cf1ddbd50f06fd11fbb8 (diff)
downloadfreebsd-ports-gnome-fca248e641783a12cccc11a370e68690ac8be9c8.tar.gz
freebsd-ports-gnome-fca248e641783a12cccc11a370e68690ac8be9c8.tar.zst
freebsd-ports-gnome-fca248e641783a12cccc11a370e68690ac8be9c8.zip
- Fix build on 9.x (OpenSSL 0.9.8)
MFH: 2015Q2
Diffstat (limited to 'www')
-rw-r--r--www/aria2/files/patch-src-LibsslTLSContext.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/aria2/files/patch-src-LibsslTLSContext.cc b/www/aria2/files/patch-src-LibsslTLSContext.cc
new file mode 100644
index 000000000000..99b730246cbb
--- /dev/null
+++ b/www/aria2/files/patch-src-LibsslTLSContext.cc
@@ -0,0 +1,23 @@
+--- src/LibsslTLSContext.cc.orig 2015-02-23 14:34:01 UTC
++++ src/LibsslTLSContext.cc
+@@ -103,14 +103,20 @@ OpenSSLTLSContext::OpenSSLTLSContext(TLS
+
+ long ver_opts = 0;
+ switch(minVer) {
++#ifdef SSL_OP_NO_TLSv1_1
+ case TLS_PROTO_TLS12:
+ ver_opts |= SSL_OP_NO_TLSv1_1;
++#endif // SSL_OP_NO_TLSv1_1
+ // fall through
++#ifdef SSL_OP_NO_TLSv1
+ case TLS_PROTO_TLS11:
+ ver_opts |= SSL_OP_NO_TLSv1;
++#endif // SSL_OP_NO_TLSv1
+ // fall through
++#ifdef SSL_OP_NO_SSLv3
+ case TLS_PROTO_TLS10:
+ ver_opts |= SSL_OP_NO_SSLv3;
++#endif // SSL_OP_NO_SSLv3
+ default:
+ break;
+ };