Skip to content

Commit

Permalink
lib: enable hmac for digest as well
Browse files Browse the repository at this point in the history
Previously a build that disabled NTLM and aws-sigv4 would fail to build
since the hmac was disabled, but it is also needed for digest auth.

Follow-up to e92edfb

Fixes curl#11890
Reported-by: Aleksander Mazur
Closes curl#11896
  • Loading branch information
bagder authored and ptitSeb committed Sep 25, 2023
1 parent 6f5e0c9 commit 8863191
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/curl_hmac.h
Expand Up @@ -24,8 +24,8 @@
*
***************************************************************************/

#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|| !defined(CURL_DISABLE_AWS)
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|| !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH)

#include <curl/curl.h>

Expand Down
4 changes: 2 additions & 2 deletions lib/hmac.c
Expand Up @@ -26,8 +26,8 @@

#include "curl_setup.h"

#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|| !defined(CURL_DISABLE_AWS)
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|| !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH)

#include <curl/curl.h>

Expand Down
1 change: 0 additions & 1 deletion lib/vauth/cleartext.c
Expand Up @@ -35,7 +35,6 @@
#include "urldata.h"

#include "vauth/vauth.h"
#include "curl_md5.h"
#include "warnless.h"
#include "strtok.h"
#include "sendf.h"
Expand Down

0 comments on commit 8863191

Please sign in to comment.