aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_core.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-31 11:47:54 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-31 12:16:58 +0000
commit7873f9bdbd9ec1f0746ca0b4cd6468ecac0e2880 (patch)
tree71a2b2bb4169098429cb70df456ca2046f498f24 /lib/curl_ntlm_core.c
parent920e684d4082e0ebed900e79d5523cf14fbf05b2 (diff)
endian: Moved write functions to new module
Diffstat (limited to 'lib/curl_ntlm_core.c')
-rw-r--r--lib/curl_ntlm_core.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index 778f729a4..6dafeeb71 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -106,6 +106,7 @@
#include "curl_md5.h"
#include "curl_hmac.h"
#include "warnless.h"
+#include "endian.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -464,26 +465,6 @@ static void ascii_uppercase_to_unicode_le(unsigned char *dest,
}
}
-static void write32_le(const int value, unsigned char *buffer)
-{
- buffer[0] = (char)(value & 0x000000FF);
- buffer[1] = (char)((value & 0x0000FF00) >> 8);
- buffer[2] = (char)((value & 0x00FF0000) >> 16);
- 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
-static void write64_le(const __int64 value, unsigned char *buffer)
-#endif
-{
- write32_le((int)value, buffer);
- write32_le((int)(value >> 32), buffer + 4);
-}
-#endif
-
/*
* Set up nt hashed passwords
*/