vauth prefer ifdef

This commit is contained in:
Viktor Szakats 2025-07-25 14:38:35 +02:00
parent 751690567b
commit ad1ca9c6e4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 7 additions and 7 deletions

View file

@ -54,7 +54,7 @@
*
* Returns a pointer to the newly allocated SPN.
*/
#if !defined(USE_WINDOWS_SSPI)
#ifndef USE_WINDOWS_SSPI
char *Curl_auth_build_spn(const char *service, const char *host,
const char *realm)
{

View file

@ -32,11 +32,11 @@
struct Curl_easy;
struct connectdata;
#if !defined(CURL_DISABLE_DIGEST_AUTH)
#ifndef CURL_DISABLE_DIGEST_AUTH
struct digestdata;
#endif
#if defined(USE_NTLM)
#ifdef USE_NTLM
struct ntlmdata;
#endif
@ -44,7 +44,7 @@ struct ntlmdata;
struct negotiatedata;
#endif
#if defined(USE_GSASL)
#ifdef USE_GSASL
struct gsasldata;
#endif
@ -60,7 +60,7 @@ struct gsasldata;
bool Curl_auth_allowed_to_host(struct Curl_easy *data);
/* This is used to build an SPN string */
#if !defined(USE_WINDOWS_SSPI)
#ifndef USE_WINDOWS_SSPI
char *Curl_auth_build_spn(const char *service, const char *host,
const char *realm);
#else
@ -153,7 +153,7 @@ CURLcode Curl_auth_gsasl_token(struct Curl_easy *data,
void Curl_auth_gsasl_cleanup(struct gsasldata *digest);
#endif
#if defined(USE_NTLM)
#ifdef USE_NTLM
/* meta key for storing NTML meta at connection */
#define CURL_META_NTLM_CONN "meta:auth:ntml:conn"
@ -250,7 +250,7 @@ CURLcode Curl_auth_create_xoauth_bearer_message(const char *user,
#define CURL_META_KRB5_CONN "meta:auth:krb5:conn"
struct kerberos5data {
#if defined(USE_WINDOWS_SSPI)
#ifdef USE_WINDOWS_SSPI
CredHandle *credentials;
CtxtHandle *context;
TCHAR *spn;