]> granicus.if.org Git - curl/commitdiff
smb: Added SMB protocol and port definitions
authorBill Nagel <wnagel@tycoint.com>
Sat, 29 Nov 2014 19:19:23 +0000 (14:19 -0500)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 29 Nov 2014 21:26:40 +0000 (21:26 +0000)
Added the necessary protocol and port definitions in order to support
SMB/CIFS.

docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/urldata.h
packages/OS400/curl.inc.in

index 8e4ca9cea7a0608b3d03649a4ccbbb658978081d..642cc19f4bb9c7f38d1556c09bd84569f6d9ba16 100644 (file)
@@ -574,6 +574,8 @@ CURLPROTO_RTMPTS                7.21.0
 CURLPROTO_RTSP                  7.20.0
 CURLPROTO_SCP                   7.19.4
 CURLPROTO_SFTP                  7.19.4
+CURLPROTO_SMB                   7.40.0
+CURLPROTO_SMBS                  7.40.0
 CURLPROTO_SMTP                  7.20.0
 CURLPROTO_SMTPS                 7.20.0
 CURLPROTO_TELNET                7.19.4
index 90d0251a08e4a915f1e02a0526a088e155ec7eab..5ed4c3ea5c5bb48fd7aa286417fff2684f025da4 100644 (file)
@@ -805,6 +805,8 @@ typedef enum {
 #define CURLPROTO_RTMPS  (1<<23)
 #define CURLPROTO_RTMPTS (1<<24)
 #define CURLPROTO_GOPHER (1<<25)
+#define CURLPROTO_SMB    (1<<26)
+#define CURLPROTO_SMBS   (1<<27)
 #define CURLPROTO_ALL    (~0) /* enable everything */
 
 /* long may be 32 or 64 bits, but we should never depend on anything else
index d0746b41fd56774313205f1234619913915b9f0f..97796b75ca8191c956a41a8677cf356235a11e30 100644 (file)
@@ -40,6 +40,8 @@
 #define PORT_IMAPS 993
 #define PORT_POP3 110
 #define PORT_POP3S 995
+#define PORT_SMB 445
+#define PORT_SMBS 445
 #define PORT_SMTP 25
 #define PORT_SMTPS 465 /* sometimes called SSMTP */
 #define PORT_RTSP 554
@@ -64,6 +66,7 @@
 #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP|CURLPROTO_HTTPS)
 #define PROTO_FAMILY_FTP  (CURLPROTO_FTP|CURLPROTO_FTPS)
 #define PROTO_FAMILY_POP3 (CURLPROTO_POP3|CURLPROTO_POP3S)
+#define PROTO_FAMILY_SMB  (CURLPROTO_SMB|CURLPROTO_SMBS)
 #define PROTO_FAMILY_SMTP (CURLPROTO_SMTP|CURLPROTO_SMTPS)
 
 #define DEFAULT_CONNCACHE_SIZE 5
index 2f6d86abc26f9444c98fddbe77dfdaf29369b58f..bc4d848f5eef280b6b31afcab96b5d65a116aff1 100644 (file)
      d                 c                   X'01000000'
      d  CURLPROTO_GOPHER...
      d                 c                   X'02000000'
+     d  CURLPROTO_SMB...
+     d                 c                   X'04000000'
+     d  CURLPROTO_SMBS...
+     d                 c                   X'08000000'
       *
      d CURLoption      s             10i 0 based(######ptr######)               Enum
      d  CURLOPT_WRITEDATA...