[英]How to enable digest when building libcurl
I build libcurl and run it but it doesnot works when server require digest authentication.我构建 libcurl 并运行它,但是当服务器需要摘要身份验证时它不起作用。
I checked the C code and I found that the following part (in http.c in output_auth_headers function) is not build:我检查了 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
What I should do to make this part of the code building and then make the digest running?我应该怎么做才能使这部分代码构建,然后使摘要运行?
When configuring, make sure to select --enable-crypto-auth
.配置时,请确保选择--enable-crypto-auth
。
Like so:像这样:
./buildconf && ./configure --enable-crypto-auth
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.