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:
Stefan Eissing 2025-04-30 14:00:35 +02:00 committed by Daniel Stenberg
parent cd3be116b6
commit 777c5209df
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 210 additions and 174 deletions

View file

@ -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)