Date: Fri, 9 Jan 2015 18:28:29 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376639 - head/mail/qpopper/files Message-ID: <201501091828.t09ISToa006832@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Fri Jan 9 18:28:29 2015 New Revision: 376639 URL: https://svnweb.freebsd.org/changeset/ports/376639 QAT: https://qat.redports.org/buildarchive/r376639/ Log: Fix build when OpenSSL doesn't support SSL2/SSL3 PR: 195796 Added: head/mail/qpopper/files/patch-popper__pop_tls_openssl.c (contents, props changed) Added: head/mail/qpopper/files/patch-popper__pop_tls_openssl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/qpopper/files/patch-popper__pop_tls_openssl.c Fri Jan 9 18:28:29 2015 (r376639) @@ -0,0 +1,34 @@ +--- popper/pop_tls_openssl.c.orig 2011-05-30 19:13:40 UTC ++++ popper/pop_tls_openssl.c +@@ -312,21 +312,31 @@ openssl_init ( pop_tls *pTLS, POP *pPOP + * concern. + */ + switch ( pPOP->tls_version ) { ++#ifdef OPENSSL_NO_SSL2 ++ case QPOP_SSLv2: ++#endif ++#ifdef OPENSSL_NO_SSL3_METHOD ++ case QPOP_SSLv3: ++#endif + case QPOP_TLSvDEFAULT: /* unspecified */ + case QPOP_SSLv23: + DEBUG_LOG0 ( pPOP, "...setting method to SSLv23_server_method" ); + pTLS->m_OpenSSLmeth = SSLv23_server_method(); + break; + ++#ifndef OPENSSL_NO_SSL2 + case QPOP_SSLv2: /* SSL version 2 only */ + DEBUG_LOG0 ( pPOP, "...setting method to SSLv2_server_method" ); + pTLS->m_OpenSSLmeth = SSLv2_server_method(); + break; ++#endif + ++#ifndef OPENSSL_NO_SSL3_METHOD + case QPOP_SSLv3: /* SSL version 3 only */ + DEBUG_LOG0 ( pPOP, "...setting method to SSLv3_server_method" ); + pTLS->m_OpenSSLmeth = SSLv3_server_method(); + break; ++#endif + + case QPOP_TLSv1: /* TLS version 1 only */ + DEBUG_LOG0 ( pPOP, "...setting method to TLSv1_server_method" );
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501091828.t09ISToa006832>