]> granicus.if.org Git - curl/commitdiff
endian: Introduced endian module
authorSteve Holme <steve_holme@hotmail.com>
Wed, 31 Dec 2014 11:31:31 +0000 (11:31 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 31 Dec 2014 11:50:28 +0000 (11:50 +0000)
To allow the little endian functions, currently used in two of the NTLM
source files, to be used by other modules such as the SMB module.

lib/Makefile.inc
lib/Makefile.vc6
lib/endian.c [new file with mode: 0644]
lib/endian.h [new file with mode: 0644]
packages/Symbian/group/libcurl.mmp

index bf1d7a297a47f5a2cc36d3bd66e25e8b1d9c9899..9678ca5e3e9da473af3548397ae5a32930654c4f 100644 (file)
@@ -45,7 +45,7 @@ LIB_CFILES = file.c timeval.c base64.c hostip.c progress.c formdata.c   \
   asyn-thread.c curl_gssapi.c curl_ntlm.c curl_ntlm_wb.c                \
   curl_ntlm_core.c curl_ntlm_msgs.c curl_sasl.c curl_multibyte.c        \
   hostcheck.c bundles.c conncache.c pipeline.c dotdot.c x509asn1.c      \
-  http2.c curl_sasl_sspi.c smb.c curl_sasl_gssapi.c
+  http2.c curl_sasl_sspi.c smb.c curl_sasl_gssapi.c endian.c
 
 LIB_HFILES = arpa_telnet.h netrc.h file.h timeval.h hostip.h progress.h \
   formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h if2ip.h         \
@@ -63,7 +63,7 @@ LIB_HFILES = arpa_telnet.h netrc.h file.h timeval.h hostip.h progress.h \
   curl_ntlm.h curl_gssapi.h curl_ntlm_wb.h curl_ntlm_core.h             \
   curl_ntlm_msgs.h curl_sasl.h curl_multibyte.h hostcheck.h bundles.h   \
   conncache.h curl_setup_once.h multihandle.h setup-vms.h pipeline.h    \
-  dotdot.h x509asn1.h http2.h sigpipe.h smb.h
+  dotdot.h x509asn1.h http2.h sigpipe.h smb.h endian.h
 
 LIB_RCFILES = libcurl.rc
 
index b235fdd561b640c02a89980c584491fad2433181..b72488b64eac8e02eae243dc8df2aa5644d7a06b 100644 (file)
@@ -555,6 +555,7 @@ X_OBJS= \
        $(DIROBJ)\dict.obj \\r
        $(DIROBJ)\dotdot.obj \\r
        $(DIROBJ)\easy.obj \\r
+       $(DIROBJ)\endian.obj \\r
        $(DIROBJ)\escape.obj \\r
        $(DIROBJ)\file.obj \\r
        $(DIROBJ)\fileinfo.obj \\r
diff --git a/lib/endian.c b/lib/endian.c
new file mode 100644 (file)
index 0000000..cc97adf
--- /dev/null
@@ -0,0 +1,25 @@
+/***************************************************************************
+ *                                  _   _ ____  _
+ *  Project                     ___| | | |  _ \| |
+ *                             / __| | | | |_) | |
+ *                            | (__| |_| |  _ <| |___
+ *                             \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at http://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+#include "curl_setup.h"
+
+#include "endian.h"
diff --git a/lib/endian.h b/lib/endian.h
new file mode 100644 (file)
index 0000000..fd17574
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef HEADER_CURL_ENDIAN_H
+#define HEADER_CURL_ENDIAN_H
+/***************************************************************************
+ *                                  _   _ ____  _
+ *  Project                     ___| | | |  _ \| |
+ *                             / __| | | | |_) | |
+ *                            | (__| |_| |  _ <| |___
+ *                             \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at http://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+#endif /* HEADER_CURL_ENDIAN_H */
index 0370ef154a1bb5c285c8f22afb39f67f133ae0e6..e89ae3d82e04dbc88fad95564f3c10079a9bde09 100644 (file)
@@ -40,7 +40,7 @@ SOURCE \
   curl_ntlm.c curl_ntlm_wb.c curl_ntlm_core.c curl_ntlm_msgs.c         \
   curl_sasl.c vtls/curl_schannel.c curl_multibyte.c                    \
   vtls/curl_darwinssl.c bundles.c conncache.c curl_sasl_sspi.c smb.c   \
-  curl_sasl_gssapi.c
+  curl_sasl_gssapi.c endian.c
 
 USERINCLUDE   ../../../lib ../../../include/curl
 #ifdef ENABLE_SSL