aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2015-01-10 02:28:29 +0800
committertijl <tijl@FreeBSD.org>2015-01-10 02:28:29 +0800
commit67c153ae889aae72b0820209fead19b40f8fff5f (patch)
treed8f46b72788d765209bbc77d14c4e1a690ea5b62
parent149e64868db0f3bc43f3d2c7d75a2d515d2693b2 (diff)
downloadfreebsd-ports-gnome-67c153ae889aae72b0820209fead19b40f8fff5f.tar.gz
freebsd-ports-gnome-67c153ae889aae72b0820209fead19b40f8fff5f.tar.zst
freebsd-ports-gnome-67c153ae889aae72b0820209fead19b40f8fff5f.zip
Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
-rw-r--r--mail/qpopper/files/patch-popper__pop_tls_openssl.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/qpopper/files/patch-popper__pop_tls_openssl.c b/mail/qpopper/files/patch-popper__pop_tls_openssl.c
new file mode 100644
index 000000000000..9c134eb50354
--- /dev/null
+++ b/mail/qpopper/files/patch-popper__pop_tls_openssl.c
@@ -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" );