summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-28 17:08:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-03-28 23:03:15 +0200
commit184ffc0bdfcab17eb96d1dd64f9c0cecc139e3e9 (patch)
tree919bba79c9f9bb5e0467f1dd4a67f8b20692fb7f /lib
parent8cbc16b2f9eb2fca20009235668b7fb751cc1826 (diff)
downloadcurl-184ffc0bdfcab17eb96d1dd64f9c0cecc139e3e9.tar.gz
curl_sasl: fix compiler error with --disable-crypto-auth
... if libgsasl was found. Closes #6806
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_sasl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index 998f4c68f..2cba18547 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -523,7 +523,7 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
case SASL_EXTERNAL:
result = Curl_auth_create_external_message(data, conn->user, &resp, &len);
break;
-
+#ifndef CURL_DISABLE_CRYPTO_AUTH
#ifdef USE_GSASL
case SASL_GSASL:
sasl->params->getmessage(data->state.buffer, &serverdata);
@@ -533,7 +533,6 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
newstate = SASL_GSASL;
break;
#endif
-#ifndef CURL_DISABLE_CRYPTO_AUTH
case SASL_CRAMMD5:
sasl->params->getmessage(data->state.buffer, &serverdata);
result = Curl_auth_decode_cram_md5_message(serverdata, &chlg, &chlglen);