mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Fix build without SSLv2 support.
This commit is contained in:
parent
5b78f3f265
commit
abd4f24481
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382057
13
security/distcache/files/patch-ssl__swamp__swamp.c
Normal file
13
security/distcache/files/patch-ssl__swamp__swamp.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ssl/swamp/swamp.c.orig 2004-02-19 15:37:33.000000000 -0500
|
||||
+++ ssl/swamp/swamp.c 2015-03-23 19:47:07.787300000 -0400
|
||||
@@ -104,8 +104,10 @@
|
||||
switch(config->sslmeth) {
|
||||
case SWAMP_SSLMETH_NORMAL:
|
||||
sslmethod = SSLv23_client_method(); break;
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
case SWAMP_SSLMETH_SSLv2:
|
||||
sslmethod = SSLv2_client_method(); break;
|
||||
+#endif
|
||||
case SWAMP_SSLMETH_SSLv3:
|
||||
sslmethod = SSLv3_client_method(); break;
|
||||
case SWAMP_SSLMETH_TLSv1:
|
12
security/distcache/files/patch-ssl__swamp__swamp.h
Normal file
12
security/distcache/files/patch-ssl__swamp__swamp.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- ssl/swamp/swamp.h.orig 2004-02-17 15:29:34.000000000 -0500
|
||||
+++ ssl/swamp/swamp.h 2015-03-23 19:47:20.490894000 -0400
|
||||
@@ -161,7 +161,9 @@
|
||||
|
||||
typedef enum st_swamp_sslmeth {
|
||||
SWAMP_SSLMETH_NORMAL, /* SSLv23_client_method() */
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
SWAMP_SSLMETH_SSLv2, /* SSLv2_client_method() */
|
||||
+#endif
|
||||
SWAMP_SSLMETH_SSLv3, /* SSLv3_client_method() */
|
||||
SWAMP_SSLMETH_TLSv1 /* TLSv1_client_method() */
|
||||
} swamp_sslmeth;
|
13
security/distcache/files/patch-ssl__swamp__utils.c
Normal file
13
security/distcache/files/patch-ssl__swamp__utils.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ssl/swamp/utils.c.orig 2004-02-17 15:29:34.000000000 -0500
|
||||
+++ ssl/swamp/utils.c 2015-03-23 19:47:34.795067000 -0400
|
||||
@@ -269,8 +269,10 @@
|
||||
{
|
||||
if(!strcmp(str_toconvert, "normal"))
|
||||
*val = SWAMP_SSLMETH_NORMAL;
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
else if(!strcmp(str_toconvert, "sslv2"))
|
||||
*val = SWAMP_SSLMETH_SSLv2;
|
||||
+#endif
|
||||
else if(!strcmp(str_toconvert, "sslv3"))
|
||||
*val = SWAMP_SSLMETH_SSLv3;
|
||||
else if(!strcmp(str_toconvert, "tlsv1"))
|
Loading…
Reference in New Issue
Block a user