Skip to content

Commit d086004

Browse files
authored
Merge pull request #39 from wnelson03/main
Security update - by VaultCord.com
2 parents e623823 + c08d713 commit d086004

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

auth.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ int VerifyPayload(std::string signature, std::string timestamp, std::string body
14851485
current_time.time_since_epoch()).count();
14861486

14871487
// Step 3: Compare the timestamps
1488-
if (current_unix_time - unix_timestamp > 15) {
1489-
// std::cout << "The timestamp is older than 15 seconds." << std::endl;
1488+
if (current_unix_time - unix_timestamp > 20) {
1489+
// std::cout << "The timestamp is older than 20 seconds." << std::endl;
14901490
LI_FN(exit)(3);
14911491
}
14921492

@@ -1559,12 +1559,12 @@ std::string KeyAuth::api::req(std::string data, std::string url) {
15591559

15601560
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
15611561

1562-
// curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
1563-
//
1564-
// curl_easy_setopt(curl, CURLOPT_NOPROXY, XorStr( "keyauth.win" ) );
1565-
//
1566-
// curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
1567-
// curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
1562+
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
1563+
1564+
curl_easy_setopt(curl, CURLOPT_NOPROXY, XorStr( "keyauth.win" ) );
1565+
1566+
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
1567+
curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
15681568

15691569
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data.c_str());
15701570

0 commit comments

Comments
 (0)