diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-12 21:57:59 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-12 22:34:16 +0000 |
commit | 82fdb87b275db7bbff512e04ed7cf199aa1da8d8 (patch) | |
tree | 3cf80892a226943c715c201fbbaef7e901bc1d37 /lib/curl_ntlm_core.c | |
parent | 97e90d7b8928f49c00ff8109a371e0613821fbc1 (diff) | |
download | gnurl-82fdb87b275db7bbff512e04ed7cf199aa1da8d8.tar.gz gnurl-82fdb87b275db7bbff512e04ed7cf199aa1da8d8.tar.bz2 gnurl-82fdb87b275db7bbff512e04ed7cf199aa1da8d8.zip |
ntlm: Disable NTLM v2 when 64-bit integers are not supported
This fixes compilation issues with compilers that don't support 64-bit
integers through long long or __int64 which was introduced in commit
07b66cbfa4.
Diffstat (limited to 'lib/curl_ntlm_core.c')
-rw-r--r-- | lib/curl_ntlm_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index 9eb92ecb6..83ca56048 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -472,6 +472,7 @@ static void write32_le(const int value, unsigned char *buffer) buffer[3] = (char)((value & 0xFF000000) >> 24); } +#if (CURL_SIZEOF_CURL_OFF_T > 4) #if defined(HAVE_LONGLONG) static void write64_le(const long long value, unsigned char *buffer) #else @@ -481,6 +482,7 @@ static void write64_le(const __int64 value, unsigned char *buffer) write32_le((int)value, buffer); write32_le((int)(value >> 32), buffer + 4); } +#endif /* * Set up nt hashed passwords @@ -550,7 +552,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct SessionHandle *data, return CURLE_OK; } -#ifndef USE_WINDOWS_SSPI +#if USE_NTLM_V2 && !defined(USE_WINDOWS_SSPI) /* This returns the HMAC MD5 digest */ CURLcode Curl_hmac_md5(const unsigned char *key, unsigned int keylen, |