Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/153.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何在构建libcurl时启用摘要_C++_C_Linux_Curl_Libcurl - Fatal编程技术网

C++ 如何在构建libcurl时启用摘要

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,

我构建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,
                                proxy,
                                (const unsigned char *)request,
                                (const unsigned char *)path);
    if(result)
      return result;
  }
  else
#endif

我应该怎么做才能使代码构建的这一部分正常运行,然后使摘要正常运行?

配置时,请确保选择
--启用加密身份验证

像这样:

./buildconf && ./configure --enable-crypto-auth