]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: fix builds that disable protocols but not digest auth
authorz2_ <88509734+z2-2z@users.noreply.github.com>
Sat, 2 Dec 2023 00:09:29 +0000 (01:09 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 2 Dec 2023 04:26:53 +0000 (23:26 -0500)
- Build base64 functions if digest auth is not disabled.

Prior to this change if some protocols were disabled but not digest auth
then a build error would occur due to missing base64 functions.

Fixes https://github.com/curl/curl/issues/12440
Closes https://github.com/curl/curl/pull/12442

lib/base64.c

index 2a49b5acd6a5b6b77f4180cf93c222a857100ec3..919eb6235999ae535332f21073893c26d1cd2488 100644 (file)
@@ -31,6 +31,7 @@
   !defined(CURL_DISABLE_SMTP) || \
   !defined(CURL_DISABLE_POP3) || \
   !defined(CURL_DISABLE_IMAP) || \
+  !defined(CURL_DISABLE_DIGEST_AUTH) || \
   !defined(CURL_DISABLE_DOH) || defined(USE_SSL) || defined(BUILDING_CURL)
 #include "curl/curl.h"
 #include "warnless.h"