Skip to content

Build error: implicit declaration of function 'Curl_auth_is_digest_supported' #17612

Closed

Description

@tritriper

I did this

Build with --disable-digest-auth :

./configure --without-libpsl --with-openssl --disable-digest-auth
make

This build error happen :

  CC       libcurl_la-curl_sasl.lo
curl_sasl.c: In function 'Curl_sasl_is_blocked':
curl_sasl.c:838:37: error: implicit declaration of function 'Curl_auth_is_digest_supported'; did you mean 'Curl_auth_is_ntlm_supported'? [-Werror=implicit-function-declaration]
  838 |                   CURL_SASL_DIGEST, Curl_auth_is_digest_supported(), NULL);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     Curl_auth_is_ntlm_supported
cc1: some warnings being treated as errors
make[2]: *** [Makefile:2622: libcurl_la-curl_sasl.lo] Error 1

I expected the following

Patch the build error.
This case is certainly not covered by a test.

curl/libcurl version

curl-8.14.1

operating system

Linux 6.6.87.1-microsoft-standard-WSL2

Activity

  1. tritriper commented on Jun 13, 2025

    @tritriper
    Author

    Patch idea :
    As for Curl_auth_is_gssapi_supported() && Curl_auth_is_ntlm_supported() in vauth.h, define Curl_auth_is_digest_supported() as false when CURL_DISABLE_DIGEST_AUTH is not defined ?

    add at vauth.h:120 :

    #else
    #define Curl_auth_is_digest_supported()     FALSE
    
  2. added a commit that references this issue on Jun 13, 2025
  3. icing commented on Jun 13, 2025

    @icing
    Contributor

    Thanks! Made #17614 with exactly this.

  4. added a commit that references this issue on Jun 15, 2025
    984c96e
  5. added a commit that references this issue on Jun 21, 2025
    4e93f98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions