From: Bill Nagel Date: Sat, 29 Nov 2014 18:33:52 +0000 (-0500) Subject: smb: Added SMB connection structure X-Git-Tag: curl-7_40_0~284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c00ba10da81e669b7fcb41d101052200ed3f3ac;p=thirdparty%2Fcurl.git smb: Added SMB connection structure Added the connection structure that will be required in urldata.h for SMB/CIFS based connections. --- diff --git a/lib/smb.h b/lib/smb.h index f4f111f08f..c5ee530358 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 */