From 6f0d43f4e0c94faf58aced518cf9a47950272f35 Mon Sep 17 00:00:00 2001 From: modsfabio Date: Wed, 9 Sep 2015 10:26:45 +0200 Subject: [PATCH] SSL fixes --- src/snapchat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snapchat.php b/src/snapchat.php index 577a3e7..c822ea2 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -165,6 +165,7 @@ public function getAttestation($password, $timestamp) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/droidguard/attest/binary"); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, array( "bytecode_proto" => base64_encode($return), @@ -348,6 +349,7 @@ public function getClientAuthToken($username, $password, $timestamp) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/security/login/signrequest/"); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE);