From 13ddb9e54afe9a3f43b4f6f33d3a8ff51d46f2c2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Oct 2015 23:51:54 +0200 Subject: ntlm: error out without 64bit support as the code needs it It makes it a clearer message for developers reaching that point without the necessary support. Thanks-by: Jay Satiro Closes #78 --- lib/curl_ntlm_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/curl_ntlm_core.c') diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index aa976e72d..38ce80551 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -668,6 +668,10 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash, CURLcode result = CURLE_OK; +#if CURL_SIZEOF_CURL_OFF_T < 8 +#error "this section needs 64bit support to work" +#endif + /* Calculate the timestamp */ #ifdef DEBUGBUILD char *force_timestamp = getenv("CURL_FORCETIME"); -- cgit v1.2.3