diff options
author | Bill Nagel <wnagel@tycoint.com> | 2014-11-29 13:33:52 -0500 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-29 20:16:51 +0000 |
commit | 7c00ba10da81e669b7fcb41d101052200ed3f3ac (patch) | |
tree | 4d780a5c02eaea48fa1ac686794fdf5384ccd199 /lib | |
parent | e80d9d5902f38407d971587f2a6b7b839247ca92 (diff) |
smb: Added SMB connection structure
Added the connection structure that will be required in urldata.h for
SMB/CIFS based connections.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smb.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 */ |