Skip to content

Commit

Permalink
fsockopen SSL no verify == no verifyname
Browse files Browse the repository at this point in the history
As per the documentation setting verify to false suppresses all SSL
checks. Fixes #310
  • Loading branch information
soulseekah committed Feb 11, 2018
1 parent 20510e7 commit 2c01f62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Requests/Transport/fsockopen.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public function request($url, $headers = array(), $data = array(), $options = ar
if (isset($options['verify'])) {
if ($options['verify'] === false) {
$context_options['verify_peer'] = false;
$context_options['verify_peer_name'] = false;
$verifyname = false;
}
elseif (is_string($options['verify'])) {
$context_options['cafile'] = $options['verify'];
Expand Down

0 comments on commit 2c01f62

Please sign in to comment.