Skip to content

Fixes #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 12, 2024
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
16 changes: 8 additions & 8 deletions auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,8 @@ int VerifyPayload(std::string signature, std::string timestamp, std::string body
current_time.time_since_epoch()).count();

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

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

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

// curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
//
// curl_easy_setopt(curl, CURLOPT_NOPROXY, XorStr( "keyauth.win" ) );
//
// curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
// curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);

curl_easy_setopt(curl, CURLOPT_NOPROXY, XorStr( "keyauth.win" ) );

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);

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

Expand Down