aboutsummaryrefslogtreecommitdiff
path: root/www/libwww
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2015-01-11 14:21:40 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2015-01-11 14:21:40 +0000
commit231815e7b9ab8c24f45b17d9e79d78babea49fcf (patch)
tree5d3992ed6d0d78725c9d2ed23566563a945c3252 /www/libwww
parent1616911228941ee3a7d785e5f0f93615309f7daf (diff)
downloadports-231815e7b9ab8c24f45b17d9e79d78babea49fcf.tar.gz
ports-231815e7b9ab8c24f45b17d9e79d78babea49fcf.zip
Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
Notes
Notes: svn path=/head/; revision=376786
Diffstat (limited to 'www/libwww')
-rw-r--r--www/libwww/files/patch-Library_src_SSL_HTSSL.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/libwww/files/patch-Library_src_SSL_HTSSL.c b/www/libwww/files/patch-Library_src_SSL_HTSSL.c
new file mode 100644
index 000000000000..9ccd893525e8
--- /dev/null
+++ b/www/libwww/files/patch-Library_src_SSL_HTSSL.c
@@ -0,0 +1,19 @@
+--- Library/src/SSL/HTSSL.c.orig 2000-08-03 16:17:20 UTC
++++ Library/src/SSL/HTSSL.c
+@@ -187,12 +187,16 @@ PUBLIC BOOL HTSSL_init (void)
+
+ /* select the protocol method */
+ switch (ssl_prot_method) {
++#ifndef OPENSSL_NO_SSL2
+ case HTSSL_V2:
+ meth = SSLv2_client_method();
+ break;
++#endif
++#ifndef OPENSSL_NO_SSL3_METHOD
+ case HTSSL_V3:
+ meth = SSLv3_client_method();
+ break;
++#endif
+ case HTSSL_V23:
+ meth = SSLv23_client_method();
+ break;