mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 02:00:30 -04:00
- remove MASTER_SITE ftp.qualcomm.com that is no more and add a couple of living distfile sources; - describe custom BSD-style Quallcom license for the distfile; - fix building with openssl-1.1.1 that no longer has SSLv2 support plus made struct ssl_st (SSL) completely opaque, so better use public interface SSL_session_reused() instead of direct access to now hidden "hit" part of struct; this works for previous openssl versions too. No PORTREVISION bump as this fixed package building for FreeBSD 12+ and has no visible package changes for other supported branches. PR: 232383 Reported by: sbruno Approved by: bc979@lafn.org (maintainer timeout, 4 weeks)
44 lines
1.8 KiB
C
44 lines
1.8 KiB
C
--- 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" );
|
|
@@ -547,7 +547,8 @@ openssl_handshake ( pop_tls *pTLS )
|
|
"%s session-id; cipher: %s (%s), %d bits",
|
|
VERSION, SSL_CIPHER_get_version(ciph),
|
|
pTLS->m_pPOP->client, pTLS->m_pPOP->ipaddr,
|
|
- ( pTLS->m_OpenSSLconn->hit ? "reused" : "new" ),
|
|
+ ( SSL_session_reused(pTLS->m_OpenSSLconn) ?
|
|
+ "reused" : "new" ),
|
|
( ciph_name != NULL ? ciph_name : "(none)" ),
|
|
get_cipher_description ( ciph, buf, sizeof(buf) ),
|
|
SSL_CIPHER_get_bits ( ciph, &al_bits ) );
|