summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-10-05 00:20:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-10-05 00:20:34 +0200
commita62f24e5dcee1081abc8e3e9ec15d2661df4b419 (patch)
tree6d281254e9382fa2ca34df40f740f21aedd4ef40
parent2592241d63c1ec56db05575c85b1647d05776e22 (diff)
downloadcurl-bagder/build-without-crypto-auth.tar.gz
build: fix --disable-crypto-authbagder/build-without-crypto-auth
Reported-by: Wyatt O'Day Fixes #1945
-rw-r--r--lib/urldata.h2
-rw-r--r--lib/vtls/vtls.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 66e4596fd..964999c1f 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -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,
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index bb8fda419..f95652520 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -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)
{