]> granicus.if.org Git - curl/commitdiff
smb: Added initial source files for SMB
authorBill Nagel <wnagel@tycoint.com>
Sat, 29 Nov 2014 18:12:44 +0000 (13:12 -0500)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 29 Nov 2014 18:10:41 +0000 (18:10 +0000)
Added the initial source files and updated the relevant project files in
order to support SMB/CIFS.

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

index cfbd3c7dd6afe14d5b547e39594111129c54a173..8e55038d0144a4b6ce7164ec701d46e124b3bd41 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
+  http2.c curl_sasl_sspi.c smb.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
+  dotdot.h x509asn1.h http2.h sigpipe.h smb.h
 
 LIB_RCFILES = libcurl.rc
 
index adf4a4cf246e7e51b2eb09078c1b1127ee25a8bc..d2e4345340c43615856d15fd147c93e03db1475f 100644 (file)
@@ -610,6 +610,7 @@ X_OBJS= \
        $(DIROBJ)\sendf.obj \\r
        $(DIROBJ)\share.obj \\r
        $(DIROBJ)\slist.obj \\r
+       $(DIROBJ)\smb.obj \\r
        $(DIROBJ)\smtp.obj \\r
        $(DIROBJ)\socks.obj \\r
        $(DIROBJ)\socks_gssapi.obj \\r
diff --git a/lib/smb.c b/lib/smb.c
new file mode 100644 (file)
index 0000000..d0bf36b
--- /dev/null
+++ b/lib/smb.c
@@ -0,0 +1,33 @@
+/***************************************************************************
+ *                                  _   _ ____  _
+ *  Project                     ___| | | |  _ \| |
+ *                             / __| | | | |_) | |
+ *                            | (__| |_| |  _ <| |___
+ *                             \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
+ *
+ * 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"
+
+#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \
+    !defined(USE_WINDOWS_SSPI)
+
+#include "smb.h"
+
+/* The last #include file should be: */
+#include "memdebug.h"
+
+#endif /* CURL_DISABLE_SMB && USE_NTLM && USE_WINDOWS_SSPI */
diff --git a/lib/smb.h b/lib/smb.h
new file mode 100644 (file)
index 0000000..f4f111f
--- /dev/null
+++ b/lib/smb.h
@@ -0,0 +1,25 @@
+#ifndef HEADER_CURL_SMB_H
+#define HEADER_CURL_SMB_H
+/***************************************************************************
+ *                                  _   _ ____  _
+ *  Project                     ___| | | |  _ \| |
+ *                             / __| | | | |_) | |
+ *                            | (__| |_| |  _ <| |___
+ *                             \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
+ *
+ * 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_SMB_H */
index c7db9cf06a93ae599c000acbe49b0002fa426fe7..086f6481851b7f62c2ed5a5a3a2ebbdd4ec6e7ab 100644 (file)
@@ -39,7 +39,7 @@ SOURCE \
   http_proxy.c non-ascii.c asyn-ares.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 vtls/curl_schannel.c curl_multibyte.c                    \
-  vtls/curl_darwinssl.c bundles.c conncache.c curl_sasl_sspi.c
+  vtls/curl_darwinssl.c bundles.c conncache.c curl_sasl_sspi.c smb.c
 
 USERINCLUDE   ../../../lib ../../../include/curl
 #ifdef ENABLE_SSL