Skip to content

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

@tritriper

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

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