构建 libcurl 时如何启用摘要
How to enable digest when building libcurl
我构建了 libcurl 并 运行 它但是当服务器需要摘要身份验证时它不起作用。
我检查了 C 代码,发现以下部分(在 output_auth_headers 函数中的 http.c 中)不是构建:
#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
我应该怎么做才能把这部分代码建起来然后做摘要运行ning?
配置时,确保select --enable-crypto-auth
.
像这样:
./buildconf && ./configure --enable-crypto-auth
我构建了 libcurl 并 运行 它但是当服务器需要摘要身份验证时它不起作用。
我检查了 C 代码,发现以下部分(在 output_auth_headers 函数中的 http.c 中)不是构建:
#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
我应该怎么做才能把这部分代码建起来然后做摘要运行ning?
配置时,确保select --enable-crypto-auth
.
像这样:
./buildconf && ./configure --enable-crypto-auth