Commit 7c00ba10 authored by Bill Nagel's avatar Bill Nagel Committed by Steve Holme
Browse files

smb: Added SMB connection structure

Added the connection structure that will be required in urldata.h for
SMB/CIFS based connections.
parent e80d9d59
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -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 */