]> granicus.if.org Git - curl/commitdiff
smb: Added SMB connection structure
authorBill Nagel <wnagel@tycoint.com>
Sat, 29 Nov 2014 18:33:52 +0000 (13:33 -0500)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 29 Nov 2014 20:16:51 +0000 (20:16 +0000)
Added the connection structure that will be required in urldata.h for
SMB/CIFS based connections.

lib/smb.h

index f4f111f08ff6407ba953b8a02094857d4d196dfd..c5ee5303584996e053bdc18b22e75b7b1877c1a5 100644 (file)
--- a/lib/smb.h
+++ b/lib/smb.h
  *
  ***************************************************************************/
 
+enum smb_conn_state {
+  SMB_NOT_CONNECTED = 0,
+  SMB_CONNECTING,
+  SMB_NEGOTIATE,
+  SMB_SETUP,
+  SMB_CONNECTED,
+};
+
+struct smb_conn {
+  enum smb_conn_state state;
+  char *user;
+  char *domain;
+  unsigned char challenge[8];
+  unsigned int session_key;
+  unsigned short uid;
+  char *send_buf;
+  char *recv_buf;
+  size_t send_size;
+  size_t sent;
+  size_t got;
+};
+
 #endif /* HEADER_CURL_SMB_H */