MFH: r482205
- Fix build with openssl 1.1.1 / unbreak on 12.0-ALPHA9 [1] - Merge a patch from upstream as some providers seem to require SNI when TLSv1.3 is used - Pacify portlint PR: 231776 Submitted by: Sascha Holzleiter <sascha@root-login.org> Notified by: pkg-fallout [1] Approved by: ports-secteam (blanket)
This commit is contained in:
parent
610d7bf558
commit
04007e91b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q4/; revision=482206
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= isync
|
||||
PORTVERSION= 1.3.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= SF
|
||||
|
||||
@ -19,11 +20,15 @@ LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
||||
|
||||
USES= alias bdb cpe perl5 ssl
|
||||
USE_PERL5= build
|
||||
CPE_VENDOR= oswald_buddenhagen
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CPE_VENDOR= oswald_buddenhagen
|
||||
|
||||
CONFIGURE_ARGS= --with-sasl=${LOCALBASE} \
|
||||
--with-ssl=${OPENSSLLIB:H}
|
||||
|
||||
MAKE_ARGS+= SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
|
||||
|
||||
CPPFLAGS+= -I${BDB_INCLUDE_DIR}
|
||||
LDFLAGS+= -L${BDB_LIB_DIR}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- src/socket.c.orig 2017-08-13 23:04:40 UTC
|
||||
--- src/socket.c.orig 2017-10-01 08:42:35 UTC
|
||||
+++ src/socket.c
|
||||
@@ -40,7 +40,7 @@
|
||||
# include <openssl/ssl.h>
|
||||
@ -9,3 +9,12 @@
|
||||
# define X509_OBJECT_get0_X509(o) ((o)->data.x509)
|
||||
# define X509_STORE_get0_objects(o) ((o)->objs)
|
||||
# endif
|
||||
@@ -270,6 +270,8 @@ socket_start_tls( conn_t *conn, void (*c
|
||||
|
||||
init_wakeup( &conn->ssl_fake, ssl_fake_cb, conn );
|
||||
conn->ssl = SSL_new( ((server_conf_t *)conn->conf)->SSLContext );
|
||||
+ if (ssl_return( "set server name", conn, SSL_set_tlsext_host_name( conn->ssl, conn->conf->host ) ) < 0)
|
||||
+ return;
|
||||
SSL_set_fd( conn->ssl, conn->fd );
|
||||
SSL_set_mode( conn->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER );
|
||||
socket_expect_read( conn, 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user