curl/lib/vauth
Federico Pellegrin cace68e299
openldap: fix missing sasl symbols at build in specific configs
If curl is built with openldap support (USE_OPENLDAP=1) but does not
have also some other protocol (IMAP/SMTP/POP3) enabled that brings
in Curl_sasl_* functions, then the build will fail with undefined
references to various symbols:

ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_decode_mech'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_parse_url_auth_option'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_cleanup'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_can_authenticate'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_continue'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_start'
ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_init'

This was tracked down to these functions bein used in openldap.c but
defined in curl_sasl.c and then forward in two vauth/ files to have
a guard against a set of #define configurations that was now extended
to cover also this case.

Example configuration targeted that could reproduce the problem:

curl 7.87.1-DEV () libcurl/7.87.1-DEV .... OpenLDAP/2.6.3
Protocols: file ftp ftps http https ldap ldaps

Closes #10445
2023-02-09 08:17:20 +01:00
..
cleartext.c openldap: fix missing sasl symbols at build in specific configs 2023-02-09 08:17:20 +01:00
cram.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
digest_sspi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
digest.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
digest.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
gsasl.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
krb5_gssapi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
krb5_sspi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
ntlm_sspi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
ntlm.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
ntlm.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
oauth2.c openldap: fix missing sasl symbols at build in specific configs 2023-02-09 08:17:20 +01:00
spnego_gssapi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
spnego_sspi.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
vauth.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
vauth.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00