diff options
author | tijl <tijl@FreeBSD.org> | 2015-01-11 22:21:40 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-01-11 22:21:40 +0800 |
commit | b8ed8af3f40dc7764b898481f27b6ea1323da504 (patch) | |
tree | 5d3992ed6d0d78725c9d2ed23566563a945c3252 /www | |
parent | f996facdb46026805ab5176a906ebe78b9964119 (diff) | |
download | freebsd-ports-gnome-b8ed8af3f40dc7764b898481f27b6ea1323da504.tar.gz freebsd-ports-gnome-b8ed8af3f40dc7764b898481f27b6ea1323da504.tar.zst freebsd-ports-gnome-b8ed8af3f40dc7764b898481f27b6ea1323da504.zip |
Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
Diffstat (limited to 'www')
-rw-r--r-- | www/libwww/files/patch-Library_src_SSL_HTSSL.c | 19 |
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; |