]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: fix --disable-crypto-auth
authorDaniel Stenberg <daniel@haxx.se>
Wed, 4 Oct 2017 22:20:34 +0000 (00:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Oct 2017 12:06:23 +0000 (14:06 +0200)
Reported-by: Wyatt O'Day
Fixes #1945
Closes #1947

lib/urldata.h
lib/vtls/vtls.c

index 66e4596fdc750a626c80e932f97726970ee25cce..964999c1fc80d52761b3086cf2ddce811f4945de 100644 (file)
@@ -1453,7 +1453,7 @@ enum dupstring {
   STRING_PROXY_SERVICE_NAME, /* Proxy service name */
 #endif
 #if !defined(CURL_DISABLE_CRYPTO_AUTH) || defined(USE_KERBEROS5) || \
-    defined(USE_SPNEGO)
+  defined(USE_SPNEGO) || defined(HAVE_GSSAPI)
   STRING_SERVICE_NAME,    /* Service name */
 #endif
   STRING_MAIL_FROM,
index bb8fda419636860b9d2cd7b76e6f91276691dddd..f9565252087c734e875a1c242a45465b5cb809be 100644 (file)
@@ -1059,6 +1059,7 @@ bool Curl_none_false_start(void)
   return FALSE;
 }
 
+#ifndef CURL_DISABLE_CRYPTO_AUTH
 CURLcode Curl_none_md5sum(unsigned char *input, size_t inputlen,
                           unsigned char *md5sum, size_t md5len UNUSED_PARAM)
 {
@@ -1073,6 +1074,15 @@ CURLcode Curl_none_md5sum(unsigned char *input, size_t inputlen,
   Curl_MD5_final(MD5pw, md5sum);
   return CURLE_OK;
 }
+#else
+CURLcode Curl_none_md5sum(unsigned char *input UNUSED_PARAM,
+                          size_t inputlen UNUSED_PARAM,
+                          unsigned char *md5sum UNUSED_PARAM,
+                          size_t md5len UNUSED_PARAM)
+{
+  return CURLE_NOT_BUILT_IN;
+}
+#endif
 
 static int Curl_multissl_init(void)
 {