【问题标题】:How to enable digest when building libcurl构建 libcurl 时如何启用摘要
【发布时间】:2016-02-11 06:57:48
【问题描述】:

我构建 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

我应该怎么做才能使这部分代码构建然后让摘要运行?

【问题讨论】:

    标签: c++ c linux curl libcurl


    【解决方案1】:

    配置的时候一定要选择--enable-crypto-auth

    像这样:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-10
      • 2018-02-23
      • 2013-05-23
      • 2012-03-04
      • 1970-01-01
      相关资源
      最近更新 更多