From 2cb37fa6c1a5746a55e09186c557ea298865da87 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 15 Jan 2016 14:27:14 -0200 Subject: Silence stream_socket_enable_crypto() warning when CN doesn't match. Fixes #5604 --- src/etc/inc/smtp.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/etc/inc/smtp.inc b/src/etc/inc/smtp.inc index 78340da..54aa8cf 100644 --- a/src/etc/inc/smtp.inc +++ b/src/etc/inc/smtp.inc @@ -1266,7 +1266,7 @@ class smtp_class && $this->VerifyResultLines('220',$responses)>0)) { $this->OutputDebug('Starting TLS cryptograpic protocol'); - if(!($success = stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) + if(!($success = @stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) $this->error = 'could not start TLS connection encryption protocol'; else { @@ -1887,4 +1887,4 @@ class smtp_class */ -?> \ No newline at end of file +?> -- cgit v1.1