Skip to content

Instantly share code, notes, and snippets.

@solardatov
Created July 5, 2016 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solardatov/fe6b1488b12a2cef4b94aebbf1c5d533 to your computer and use it in GitHub Desktop.
Save solardatov/fe6b1488b12a2cef4b94aebbf1c5d533 to your computer and use it in GitHub Desktop.
gost_https_sample.cpp
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