C++ 如何在构建libcurl时启用摘要
我构建libcurl并运行它,但当服务器需要摘要身份验证时,它不起作用 我检查了C代码,发现以下部分(在http.C的output\u auth\u headers函数中)不是生成的:C++ 如何在构建libcurl时启用摘要,c++,c,linux,curl,libcurl,C++,C,Linux,Curl,Libcurl,我构建libcurl并运行它,但当服务器需要摘要身份验证时,它不起作用 我检查了C代码,发现以下部分(在http.C的output\u auth\u headers函数中)不是生成的: #ifndef CURL_DISABLE_CRYPTO_AUTH if(authstatus->picked == CURLAUTH_DIGEST) { auth="Digest"; result = Curl_output_digest(conn,
#ifndef CURL_DISABLE_CRYPTO_AUTH
if(authstatus->picked == CURLAUTH_DIGEST) {
auth="Digest";
result = Curl_output_digest(conn,
proxy,
(const unsigned char *)request,
(const unsigned char *)path);
if(result)
return result;
}
else
#endif
我应该怎么做才能使代码构建的这一部分正常运行,然后使摘要正常运行?配置时,请确保选择
--启用加密身份验证
像这样:
./buildconf && ./configure --enable-crypto-auth