From: Daniel Stenberg Date: Fri, 9 Oct 2015 21:51:54 +0000 (+0200) Subject: ntlm: error out without 64bit support as the code needs it X-Git-Tag: curl-7_46_0~160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13ddb9e54afe9a3f43b4f6f33d3a8ff51d46f2c2;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index aa976e72de..38ce805516 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");