1314 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 aff9fa6ba9 Merge pull request #424 from alex-berliner/fix_examples
Handle return from writes
2025-08-09 23:00:50 +10:00
Ronnie Sahlberg ee2f86789d Merge branch 'master' of github.com:sahlberg/libsmb2 2025-07-31 17:35:21 +10:00
Ronnie Sahlberg f0ccf5f652 Try to read as much as possible from the socket in read_from_socket()
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-31 13:13:41 +10:00
Your Name 81e43d9639 Handle return from writes
examples/smb2-cat-async.c and examples/smb2-cat-sync.c had write()'s
whose return values were not being caught, which was preventing
make from compiling the examples.
2025-07-30 16:07:44 -04:00
Ronnie Sahlberg 87abaf2b67 Merge pull request #422 from Wolf3s/readme
fix installation readme nintendo switch, nintendo ds, nintendo wii-u …
2025-07-30 07:36:02 +10:00
Wolf3s 8a67949bb5 fix installation readme nintendo switch, nintendo ds, nintendo wii-u and Dreamcast. 2025-07-29 15:29:31 -03: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 2d0283eb0d Improve error string when create fails.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-17 13:51:12 +10:00
Ronnie Sahlberg 5e2bf72df6 Improve parsing of NTLM_USER_FILE
Try to match the first field of this file as either the smb2
domain OR the server name.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-17 13:30:23 +10:00
Ronnie Sahlberg 075ed52502 tests: fix handling of linking to the symbols more robust
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-17 13:30:23 +10:00
Ronnie Sahlberg 3ef99b3cfb smb2-cat-async: use a define for max read size
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-17 11:56:26 +10:00
Ronnie Sahlberg e7ffada737 Add epoll based example
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-16 17:24:08 +10:00
Ronnie Sahlberg b878d4663d Fix rename issue against windows systems.
Some servers require additional padding in the rename operation
and will fail if this padding is missing.
Add 8 more bytes of padding to make them happy.

Fixes #420

Suggested-by: CNWangZW

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-07-12 08:53:18 +10:00
Ronnie Sahlberg 08ffc7d25c Merge pull request #419 from piru/fix-syntax-version-coder
fix syntax version encoding on non-little endian systems
2025-06-17 08:32:00 +10:00
Harry Sintonen 60840f49ed fix syntax version encoding to process vers and vers_minor properly as two separate 16-bit numbers. the old code only worked correctly on little endian systems. 2025-06-16 04:01:58 +03:00
Ronnie Sahlberg 2fd92942c9 Merge pull request #418 from piru/fix-infofieldoffset
fix target info field offset for non-litle endian systems
2025-06-15 19:58:26 +10:00
Harry Sintonen 833602d8c3 fix target info field offset for non-litle endian systems. 2025-06-15 01:22:50 +03: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
Ronnie Sahlberg aeadd6df79 Merge pull request #416 from pinotree/missing-errno-include
Include <errno.h> before compat.h
2025-06-03 15:36:59 +10:00
Pino Toscano b9bbf218fc Include <errno.h> before compat.h
compat.h defines fallback definitions for errno constants and it does
not include <errno.h> on its own; if <errno.h> is not already included
then there are wrongly generated fallback definitions.

Apply the approach already in other sources, i.e. explicitly include
<errno.h> before compat.h.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2025-06-03 07:24:12 +02:00
Ronnie Sahlberg 696ca7fd94 Merge pull request #415 from pinotree/hurd
Adapt portable-endian.h for GNU/Hurd
2025-06-03 15:21:56 +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