mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
This commit is contained in:
parent
1616911228
commit
231815e7b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376786
1 changed files with 19 additions and 0 deletions
19
www/libwww/files/patch-Library_src_SSL_HTSSL.c
Normal file
19
www/libwww/files/patch-Library_src_SSL_HTSSL.c
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue