-
-
Save solardatov/fe6b1488b12a2cef4b94aebbf1c5d533 to your computer and use it in GitHub Desktop.
gost_https_sample.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURLcode setoptRes; | |
setoptRes = curl_easy_setopt(pCurl, CURLOPT_URL, pThis->m_zURL); TRACE_ARGS("DoAsyncHttpRequest CURLOPT_URL %d", setoptRes); | |
// .. skipped | |
if (false == g_bEnableSSLChecks) | |
{ | |
setoptRes = curl_easy_setopt(pCurl, CURLOPT_SSL_VERIFYPEER, 0L); TRACE_ARGS("DoAsyncHttpRequest CURLOPT_SSL_VERIFYPEER %d", setoptRes); | |
setoptRes = curl_easy_setopt(pCurl, CURLOPT_SSL_VERIFYHOST, 0L); TRACE_ARGS("DoAsyncHttpRequest CURLOPT_SSL_VERIFYHOST %d", setoptRes); | |
} | |
setoptRes = curl_easy_setopt(pCurl, CURLOPT_SSLENGINE, "gost"); TRACE_ARGS("DoAsyncHttpRequest CURLOPT_SSLENGINE %d", setoptRes); | |
// .. skipped | |
auto res = curl_easy_perform(pCurl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment