]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_sasl: fix compiler error with --disable-crypto-auth
authorDaniel Stenberg <daniel@haxx.se>
Sun, 28 Mar 2021 15:08:44 +0000 (17:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 28 Mar 2021 21:03:15 +0000 (23:03 +0200)
... if libgsasl was found.

Closes #6806

lib/curl_sasl.c

index 998f4c68f78fdd921389acb72726a30ad80d699f..2cba185470ca188e054317d4d70dff294f588ec1 100644 (file)
@@ -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);