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

SSL fixes #192

Merged
merged 1 commit into from Sep 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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