Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #192 from modsfabio/patch-2
Browse files Browse the repository at this point in the history
SSL fixes
  • Loading branch information
mgp25 committed Sep 9, 2015
2 parents d9a98a7 + 6f0d43f commit d4474e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d4474e4

Please sign in to comment.