442 Commits

Author SHA1 Message Date
Lyon-Zovey 68fd08bb9e Adapted to the new version of ESP-IDF 2025-08-12 11:26:40 +08:00
Ronnie Sahlberg dcddcd824e Immediately write PDUs to an idle socket
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-17 15:08:34 +10:00
Ronnie Sahlberg e7e9334ea2 Merge pull request #414 from bdodge/bdd/make-sense-of-pdu-accessors
Bdd/make sense of pdu accessors
2025-06-07 19:32:03 +10:00
Pino Toscano 8f7a099947 Adapt portable-endian.h for GNU/Hurd
Use <endian.h> & <byteswap.h>, as available from GNU libc.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2025-06-03 07:19:07 +02:00
bdodge 5a439a485d Merge branch 'master' into bdd/make-sense-of-pdu-accessors 2025-05-30 07:46:59 -04:00
bdodge 7159bee359 add chained pdu accessor and name others properly 2025-04-29 07:23:06 -04:00
Ronnie Sahlberg 89630f7961 Fix PS2 build
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-04-25 12:40:09 +10:00
Matthew Allen 9119f85fff Fix issue #404: smb2_timeval_to_win return type too small on 32bit systems. 2025-03-19 09:45:00 +11:00
bdodge 72e9c43830 use only msgid for message correlation 2025-03-11 08:30:58 -04:00
bdodge 79125e0a1c proper handling of async replies 2025-02-17 10:17:02 -05:00
Dmitriy Savin 515e7e0094 Add missing file information classes
Implement FILE_STREAM_INFORMATION encoding, decoding

re-sent pending pdu after credits is enough

Signed-off-by: weixinwei <weixw3@lenovo.com>

fixup file stream info path

alloc for multiple structs properly

cleanup
2025-02-06 12:20:46 -05:00
bdodge 14286e43b9 add handlers for transcoding normalized file info, detect buffer overflow on reply encoding 2025-01-19 16:37:12 -05:00
bdodge bdaef47fa9 add ability to set status in pdu in public api 2025-01-19 15:49:12 -05:00
bdodge dbbee9de83 option to get krb5 creds via local keytab 2025-01-06 07:14:19 +10:00
Ronnie Sahlberg 28e996492a declare smb2_oplock_or_lease_break_reply in libsmb2.h
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-01-03 12:30:22 +10:00
Tryggvi Larusson ed49d78514 Better handling of closing directory handle 2025-01-03 10:30:46 +10:00
Tryggvi Larusson 5b9a7af89d Added example command smb2-notify under examples 2025-01-03 10:30:22 +10:00
Tryggvi Larusson 9112597a89 Implementation of change_notify client 2025-01-03 10:30:12 +10:00
Ronnie Sahlberg a7a051f337 Remove ifdef we no longer need for smb2_get_password_from_file()
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-01-03 09:59:05 +10:00
Ronnie Sahlberg 2546fe1aaa Remove redundant declaration of smb2_get_{domain|workstation}
We already have these down next to the setters.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-01-03 09:41:59 +10:00
bdodge b4e5175d22 fix offsets in write pdu, dont leak dir name 2025-01-01 10:17:43 -05:00
Ronnie Sahlberg 076ed4cc43 dcerpc: update the argument names for dcerpc_call_async
to be more descriptive.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2024-12-28 16:34:52 +10:00
Ronnie Sahlberg 22c6086ced Add a helper to get the session_id
From bdodge <bdodge09@gmail.com>

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2024-12-28 08:43:46 +10:00
Ronnie Sahlberg b58f4bdcb5 Add smb2_get_workstation
From bdodge <bdodge09@gmail.com>
Add getter to read the workstation from the smb2 context

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2024-12-28 08:35:30 +10:00
Ronnie Sahlberg fbe9674163 move smb2_sec to a public header
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2024-12-28 08:31:25 +10:00