Skip to content
Browse files

ssl_verifypeer support

  • Loading branch information...
1 parent f451e1a commit fe2b6493f3b20c3d6b01d6f519f02caec4bb08a5 @thousandsofthem thousandsofthem committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 IronCore.class.php
View
3 IronCore.class.php
@@ -42,6 +42,7 @@ class IronCore{
public $max_retries = 5;
public $debug_enabled = false;
+ public $ssl_verifypeer = true;
protected static function dateRfc3339($timestamp = 0) {
@@ -200,7 +201,7 @@ protected function apiCall($type, $url, $params = array(), $raw_post_data = null
curl_setopt($s, CURLOPT_URL, $fullUrl);
break;
}
- curl_setopt($s, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($s, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);
curl_setopt($s, CURLOPT_RETURNTRANSFER, true);
curl_setopt($s, CURLOPT_HTTPHEADER, $this->compiledHeaders());
return $this->callWithRetries($s);

0 comments on commit fe2b649

Please sign in to comment.
Something went wrong with that request. Please try again.