aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-10-09 23:51:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-10-09 23:51:54 +0200
commit13ddb9e54afe9a3f43b4f6f33d3a8ff51d46f2c2 (patch)
tree63358abb0bf4bb48860e1250e6db0723c8bee295
parent7715a70ba248899643c65c80e2d8d0b9947e989e (diff)
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
-rw-r--r--lib/curl_ntlm_core.c4
1 files changed, 4 insertions, 0 deletions
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");