Permalink
Browse files

PEAR: Turn off peer name verification (SMTP)

  • Loading branch information...
protich committed Oct 24, 2016
1 parent 865db9b commit 4f68aeb3fd746a18c598689b8b428db49faa7613
Showing with 7 additions and 0 deletions.
  1. +7 −0 include/pear/Net/SMTP.php
@@ -166,6 +166,13 @@ public function __construct($host = null, $port = null, $localhost = null,
$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;

0 comments on commit 4f68aeb

Please sign in to comment.