Always remove verify_host from SSL context.

It is only used to be able to set ```CN_match```.
This commit is contained in:
ber clausen 2013-11-21 16:23:01 -02:00
parent 7fdf17e43e
commit 1b9bf7b0fd

View file

@ -689,8 +689,8 @@ class HttpSocket extends CakeSocket {
}
if (!empty($this->config['context']['ssl']['verify_host'])) {
$this->config['context']['ssl']['CN_match'] = $host;
unset($this->config['context']['ssl']['verify_host']);
}
unset($this->config['context']['ssl']['verify_host']);
}
/**