Paypal TLS upgrade : verifypeer and verifyhost
This commit is contained in:
parent
c52564a49f
commit
65f19d26a4
@ -83,8 +83,8 @@ class PayPalConnect
|
||||
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
@curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
@curl_setopt($ch, CURLOPT_TIMEOUT, 30);
|
||||
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
||||
@curl_setopt($ch, CURLOPT_SSLVERSION, defined('CURL_SSLVERSION_TLSv1') ? CURL_SSLVERSION_TLSv1 : 1);
|
||||
@curl_setopt($ch, CURLOPT_VERBOSE, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user