svn commit: r382053 - head/mail/courier/files

Jung-uk Kim jkim at FreeBSD.org
Mon Mar 23 22:35:43 UTC 2015


Author: jkim
Date: Mon Mar 23 22:35:42 2015
New Revision: 382053
URL: https://svnweb.freebsd.org/changeset/ports/382053
QAT: https://qat.redports.org/buildarchive/r382053/

Log:
  Fix build on head with the base OpenSSL.  SSLv2 is no longer available.

Added:
  head/mail/courier/files/patch-tcpd__libcouriertls.c   (contents, props changed)

Added: head/mail/courier/files/patch-tcpd__libcouriertls.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/courier/files/patch-tcpd__libcouriertls.c	Mon Mar 23 22:35:42 2015	(r382053)
@@ -0,0 +1,15 @@
+--- 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 @@
+ 	if (!protocol || !*protocol)
+ 		protocol="SSL23";
+ 
+-	ctx=SSL_CTX_new(protocol && strcmp(protocol, "SSL2") == 0
+-							? SSLv2_method():
++	ctx=SSL_CTX_new(
++#ifndef OPENSSL_NO_SSL2
++		protocol && strcmp(protocol, "SSL2") == 0 ? SSLv2_method():
++#endif
+ 		protocol && strcmp(protocol, "SSL3") == 0 ? SSLv3_method():
+ 		protocol && strcmp(protocol, "SSL23") == 0 ? SSLv23_method():
+ 		TLSv1_method());


More information about the svn-ports-head mailing list