summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smb.h22
1 files changed, 22 insertions, 0 deletions
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 */