[英]How to enable digest when building libcurl
我构建 libcurl 并运行它,但是当服务器需要摘要身份验证时它不起作用。
我检查了 C 代码,发现以下部分(在 http.c 中的 output_auth_headers 函数中)没有构建:
#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
我应该怎么做才能使这部分代码构建,然后使摘要运行?
配置时,请确保选择--enable-crypto-auth
。
像这样:
./buildconf && ./configure --enable-crypto-auth
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.