From 4f68aeb3fd746a18c598689b8b428db49faa7613 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 24 Oct 2016 23:13:00 +0000 Subject: [PATCH] PEAR: Turn off peer name verification (SMTP) --- include/pear/Net/SMTP.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/pear/Net/SMTP.php b/include/pear/Net/SMTP.php index 8f4e92b75..530f558c9 100644 --- a/include/pear/Net/SMTP.php +++ b/include/pear/Net/SMTP.php @@ -166,6 +166,13 @@ class Net_SMTP $this->pipelining = $pipelining; $this->socket = new Net_Socket(); + + // Turn off peer name verification by default + if (!$socket_options) + $socket_options = array( + 'ssl' => array('verify_peer_name' => false) + ); + $this->socket_options = $socket_options; $this->timeout = $timeout; -- GitLab