summaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_msgs.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-31 11:40:16 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-31 12:05:36 +0000
commit920e684d4082e0ebed900e79d5523cf14fbf05b2 (patch)
tree1b1f96fefe6fdd2e80bcf255017e7c216ef81728 /lib/curl_ntlm_msgs.c
parent81951d98748188fd57c07435fa74c505db6a0ba7 (diff)
downloadcurl-920e684d4082e0ebed900e79d5523cf14fbf05b2.tar.gz
endian: Moved read functions to new module
Diffstat (limited to 'lib/curl_ntlm_msgs.c')
-rw-r--r--lib/curl_ntlm_msgs.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index ece1d0fa4..3d6cf53e0 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -52,6 +52,7 @@
#define BUILDING_CURL_NTLM_MSGS_C
#include "curl_ntlm_msgs.h"
#include "curl_sasl.h"
+#include "endian.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -149,28 +150,6 @@ static void ntlm_print_hex(FILE *handle, const char *buf, size_t len)
#endif
/*
- * This function converts from the little endian format used in the
- * incoming package to whatever endian format we're using natively.
- * Argument is a pointer to a 4 byte buffer.
- */
-static unsigned int readint_le(unsigned char *buf)
-{
- return ((unsigned int)buf[0]) | ((unsigned int)buf[1] << 8) |
- ((unsigned int)buf[2] << 16) | ((unsigned int)buf[3] << 24);
-}
-
-/*
- * This function converts from the little endian format used in the incoming
- * package to whatever endian format we're using natively. Argument is a
- * pointer to a 2 byte buffer.
- */
-static unsigned short readshort_le(unsigned char *buf)
-{
- return (unsigned short)(((unsigned short)buf[0]) |
- ((unsigned short)buf[1] << 8));
-}
-
-/*
* ntlm_decode_type2_target()
*
* This is used to decode the "target info" in the ntlm type-2 message