From 7c00ba10da81e669b7fcb41d101052200ed3f3ac Mon Sep 17 00:00:00 2001 From: Bill Nagel Date: Sat, 29 Nov 2014 13:33:52 -0500 Subject: smb: Added SMB connection structure Added the connection structure that will be required in urldata.h for SMB/CIFS based connections. --- lib/smb.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib') diff --git a/lib/smb.h b/lib/smb.h index f4f111f08..c5ee53035 100644 --- a/lib/smb.h +++ b/lib/smb.h @@ -22,4 +22,26 @@ * ***************************************************************************/ +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 */ -- cgit v1.2.3