mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
smb: use easy handle/connection meta hash to keep structs
Keep easy/connection related protoocl structs in the meta hash instead of the unions at request and connectdata. Closes #17238
This commit is contained in:
parent
cd3be116b6
commit
777c5209df
4 changed files with 210 additions and 174 deletions
24
lib/smb.h
24
lib/smb.h
|
|
@ -25,30 +25,6 @@
|
|||
*
|
||||
***************************************************************************/
|
||||
|
||||
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;
|
||||
char *share;
|
||||
unsigned char challenge[8];
|
||||
unsigned int session_key;
|
||||
unsigned short uid;
|
||||
char *recv_buf;
|
||||
char *send_buf;
|
||||
size_t upload_size;
|
||||
size_t send_size;
|
||||
size_t sent;
|
||||
size_t got;
|
||||
};
|
||||
|
||||
#if !defined(CURL_DISABLE_SMB) && defined(USE_CURL_NTLM_CORE) && \
|
||||
(SIZEOF_CURL_OFF_T > 4)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue