]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl: Enable support for the SMB protocol
authorBill Nagel <wnagel@tycoint.com>
Sun, 30 Nov 2014 16:18:46 +0000 (11:18 -0500)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 30 Nov 2014 20:25:28 +0000 (20:25 +0000)
This patch enables SMB/CIFS support in libcurl.

lib/url.c
lib/version.c

index 5b19f896e124489c2277f6e75f64ff20ca7a9df9..0a3150e25da422bb87716ee99d6d7bc4b8c6fb71 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -216,6 +216,14 @@ static const struct Curl_handler * const protocols[] = {
 #endif
 #endif
 
+#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \
+    !defined(USE_WINDOWS_SSPI)
+  &Curl_handler_smb,
+#ifdef USE_SSL
+  &Curl_handler_smbs,
+#endif
+#endif
+
 #ifndef CURL_DISABLE_SMTP
   &Curl_handler_smtp,
 #ifdef USE_SSL
index 1ea8a21e897a280f3d6b457f145aa8557dbe6fbf..0eb229bc63307b11fbd3139fb2b73559e3aca35b 100644 (file)
@@ -216,6 +216,13 @@ static const char * const protocols[] = {
 #ifdef USE_LIBSSH2
   "sftp",
 #endif
+#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \
+    !defined(USE_WINDOWS_SSPI)
+  "smb",
+#  ifdef USE_SSL
+  "smbs",
+#  endif
+#endif
 #ifndef CURL_DISABLE_SMTP
   "smtp",
 #endif