________________________________

This e-mail contains privileged and confidential information intended for the 
use of the addressees named above. If you are not the intended recipient of 
this e-mail, you are hereby notified that you must not disseminate, copy or 
take any action in respect of any information contained in it. If you have 
received this e-mail in error, please notify the sender immediately by e-mail 
and immediately destroy this e-mail and its attachments.
From cba1f3a9c569bb5403c3058988356531d3556960 Mon Sep 17 00:00:00 2001
From: Bill Nagel <wna...@tycoint.com>
Date: Mon, 6 Oct 2014 17:07:19 -0400
Subject: [PATCH 4/4] curl tool: support for the smb protocol

This patch adds SMB/CIFS support to the curl tool.
---
 src/tool_libinfo.c  |    2 ++
 src/tool_paramhlp.c |    2 ++
 src/tool_setopt.c   |    2 ++
 3 files changed, 6 insertions(+)

diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c
index 81b6680..404d76e 100644
--- a/src/tool_libinfo.c
+++ b/src/tool_libinfo.c
@@ -67,6 +67,8 @@ CURLcode get_libcurl_info(void)
     { "rtsp",   CURLPROTO_RTSP   },
     { "scp",    CURLPROTO_SCP    },
     { "sftp",   CURLPROTO_SFTP   },
+    { "smb",    CURLPROTO_SMB    },
+    { "smbs",   CURLPROTO_SMBS   },
     { "smtp",   CURLPROTO_SMTP   },
     { "smtps",  CURLPROTO_SMTPS  },
     { "telnet", CURLPROTO_TELNET },
diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c
index 18da026..a851e09 100644
--- a/src/tool_paramhlp.c
+++ b/src/tool_paramhlp.c
@@ -268,6 +268,8 @@ long proto2num(struct OperationConfig *config, long *val, const char *str)
     { "imaps", CURLPROTO_IMAPS },
     { "pop3", CURLPROTO_POP3 },
     { "pop3s", CURLPROTO_POP3S },
+    { "smb", CURLPROTO_SMB },
+    { "smbs", CURLPROTO_SMBS },
     { "smtp", CURLPROTO_SMTP },
     { "smtps", CURLPROTO_SMTPS },
     { "rtsp", CURLPROTO_RTSP },
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 62d94a6..a53fdc8 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -134,6 +134,8 @@ const NameValue setopt_nv_CURLPROTO[] = {
   NV(CURLPROTO_RTSP),
   NV(CURLPROTO_SCP),
   NV(CURLPROTO_SFTP),
+  NV(CURLPROTO_SMB),
+  NV(CURLPROTO_SMBS),
   NV(CURLPROTO_SMTP),
   NV(CURLPROTO_SMTPS),
   NV(CURLPROTO_TELNET),
-- 
1.7.9.5

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to