From 7bc5308db3385cdc31efa8182b58e229eb721994 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Oct 2017 00:20:34 +0200 Subject: build: fix --disable-crypto-auth Reported-by: Wyatt O'Day Fixes #1945 Closes #1947 --- lib/vtls/vtls.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/vtls') 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) { -- cgit v1.2.3