1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Make it also buildable without SSLv3 support.

PR:		198399
This commit is contained in:
Jung-uk Kim 2015-03-23 23:07:18 +00:00
parent 9b5c52fde9
commit 67ac109eab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382055

View File

@ -1,6 +1,6 @@
--- tcpd/libcouriertls.c.orig 2009-11-21 15:07:32.000000000 -0500
+++ tcpd/libcouriertls.c 2015-03-23 18:04:57.776710000 -0400
@@ -551,8 +551,10 @@
--- tcpd/libcouriertls.c.orig 2009-11-21 21:07:32.000000000 +0100
+++ tcpd/libcouriertls.c 2015-03-07 22:46:47.521076321 +0100
@@ -551,9 +551,13 @@
if (!protocol || !*protocol)
protocol="SSL23";
@ -10,6 +10,9 @@
+#ifndef OPENSSL_NO_SSL2
+ protocol && strcmp(protocol, "SSL2") == 0 ? SSLv2_method():
+#endif
+#ifndef OPENSSL_NO_SSL3
protocol && strcmp(protocol, "SSL3") == 0 ? SSLv3_method():
+#endif
protocol && strcmp(protocol, "SSL23") == 0 ? SSLv23_method():
TLSv1_method());