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

Commit d4474e4

Browse files
committed
Merge pull request #192 from modsfabio/patch-2
SSL fixes
2 parents d9a98a7 + 6f0d43f commit d4474e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/snapchat.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public function getAttestation($password, $timestamp)
165165
$ch = curl_init();
166166

167167
curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/droidguard/attest/binary");
168+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
168169
curl_setopt($ch, CURLOPT_POST, TRUE);
169170
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
170171
"bytecode_proto" => base64_encode($return),
@@ -348,6 +349,7 @@ public function getClientAuthToken($username, $password, $timestamp)
348349

349350
$ch = curl_init();
350351
curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/security/login/signrequest/");
352+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
351353
curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE);
352354
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
353355
curl_setopt($ch, CURLOPT_HEADER, FALSE);

0 commit comments

Comments
 (0)