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

Commit

Permalink
SSL fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
modsfabio committed Sep 9, 2015
1 parent 1959bcc commit 6f0d43f
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 6f0d43f

Please sign in to comment.