From: Bill Nagel Date: Sun, 30 Nov 2014 16:18:46 +0000 (-0500) Subject: libcurl: Enable support for the SMB protocol X-Git-Tag: curl-7_40_0~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f2419342f8408120486e914da9aa7f58cb62ac2;p=thirdparty%2Fcurl.git libcurl: Enable support for the SMB protocol This patch enables SMB/CIFS support in libcurl. --- diff --git a/lib/url.c b/lib/url.c index 5b19f896e1..0a3150e25d 100644 --- 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 diff --git a/lib/version.c b/lib/version.c index 1ea8a21e89..0eb229bc63 100644 --- a/lib/version.c +++ b/lib/version.c @@ -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