mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
md4: only build when used
Its only usage in curl_ntlm_core.c is guarded by `USE_CURL_NTLM_CORE`, so let's use this here too. Ref: https://github.com/curl/curl/issues/11098 Closes https://github.com/curl/curl/pull/11102
This commit is contained in:
parent
de2542f3f2
commit
e587598534
@ -24,7 +24,7 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_CRYPTO_AUTH)
|
||||
#if defined(USE_CURL_NTLM_CORE)
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -504,4 +504,4 @@ void Curl_md4it(unsigned char *output, const unsigned char *input,
|
||||
MD4_Final(output, &ctx);
|
||||
}
|
||||
|
||||
#endif /* CURL_DISABLE_CRYPTO_AUTH */
|
||||
#endif /* USE_CURL_NTLM_CORE */
|
||||
|
@ -37,7 +37,7 @@ static void unit_stop(void)
|
||||
|
||||
UNITTEST_START
|
||||
|
||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||
#ifdef USE_CURL_NTLM_CORE
|
||||
const char string1[] = "1";
|
||||
const char string2[] = "hello-you-fool";
|
||||
unsigned char output[MD4_DIGEST_LENGTH];
|
||||
|
Loading…
Reference in New Issue
Block a user