Skip to content

Commit a2f9404

Browse files
committed
Add SSL checks
1 parent e623823 commit a2f9404

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

auth.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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)