Commit Graph

  • 935d3c9ed7 make sure async flag is set for pending status replies bdodge 2024-12-20 07:38:39 -05:00
  • cb73676cc3 fix incorrect type for oval Ronnie Sahlberg 2024-12-28 09:36:23 +10:00
  • cf3b17f291 make ci happier bdodge 2024-12-16 07:14:05 -05:00
  • f863e2b5eb Remove unused function hex_print Ronnie Sahlberg 2024-12-28 09:14:33 +10:00
  • 92983e9a10 fix oid parsing from ber, add spnego wrapping for auth blob, really decode ntlm challenge and add target-spn to ntlm auth bdodge 2024-12-11 16:49:00 -05:00
  • 1899df36a7 Add extra NULL checks in smb2_set_[domain|workstation] Ronnie Sahlberg 2024-12-28 09:02:11 +10:00
  • 22c6086ced Add a helper to get the session_id Ronnie Sahlberg 2024-12-28 08:43:46 +10:00
  • b58f4bdcb5 Add smb2_get_workstation Ronnie Sahlberg 2024-12-28 08:35:30 +10:00
  • fbe9674163 move smb2_sec to a public header Ronnie Sahlberg 2024-12-28 08:31:25 +10:00
  • 9c370c43dd direct include krb5 headers to avoud needing to include headers in source dir bdodge 2024-12-21 17:26:43 -05:00
  • 05a4df55d3 Fix format string in smb2-lsa-lookupsids.c Ronnie Sahlberg 2024-12-28 08:20:52 +10:00
  • d67e213a5c Fix compile breakage for cmake in libnfs-private.h Ronnie Sahlberg 2024-12-23 13:38:55 +10:00
  • 2a5e83ae4b add krb5 cred handle passing and release mechanism for proxying briandodge 2024-11-11 07:11:26 -05:00
  • 9f86f288df tests: exclude known failures for prog_ls crashes Ronnie Sahlberg 2024-12-21 02:25:05 +10:00
  • b0f456d61c cleanup test_0103 Ronnie Sahlberg 2024-12-21 02:21:20 +10:00
  • b074bf8ab7 fix aditional null pointers due to malloc failures Ronnie Sahlberg 2024-12-21 01:33:49 +10:00
  • 80347b382b ensure we have a username when connecting a share Ronnie Sahlberg 2024-12-20 06:44:03 +10:00
  • 8954af99a0 verify we have a share name when connecting a share Ronnie Sahlberg 2024-12-20 06:34:37 +10:00
  • 180bc38b1f check result of strdup when connecting share Ronnie Sahlberg 2024-12-20 06:27:00 +10:00
  • 5518394f90 fix segv in smb2_set_password_from_file if smb2->user==NULL Ronnie Sahlberg 2024-12-20 06:18:43 +10:00
  • c58a6eb540 wip cause malloc to fail Ronnie Sahlberg 2024-12-20 06:13:31 +10:00
  • aaa6193378 tests: use prog_ls instead of smb2-ls Ronnie Sahlberg 2024-12-20 04:25:44 +10:00
  • 3f5c3d5c15 Do not dereference data_cb during shutdown for smb2_close Ronnie Sahlberg 2024-12-19 14:29:49 +10:00
  • ee2b57b13a tests: add tests for smb2_open/_read/_write/_close Ronnie Sahlberg 2024-12-19 14:29:23 +10:00
  • 6a161d055b opendir: don't dereference cb_data when in shutdown mode Ronnie Sahlberg 2024-12-18 16:15:16 +10:00
  • aad9f7bb60 Merge pull request #387 from tguillem/cmake-libkrb5-option Ronnie Sahlberg 2024-12-17 03:29:55 -05:00
  • 3e0f7949c7 cmake: add ENABLE_LIBKRB5 and ENABLE_GSSAPI options Thomas Guillem 2024-12-17 08:18:03 +01:00
  • 79e2a7f64b Merge pull request #386 from Laxy317/fix-missing-header Ronnie Sahlberg 2024-12-16 21:31:37 -05:00
  • b9f2b29e18 fix: Fixed undeclared identifier 'ENXIO' in android laxy 2024-12-17 10:02:21 +08:00
  • b1b3887993 New version 6.1.0 Ronnie Sahlberg 2024-12-16 20:04:13 +10:00
  • d24048ac7a Add LIBSMB2_SHARE_ENUM_V2 as a symbol Ronnie Sahlberg 2024-12-16 19:58:09 +10:00
  • f0ded5e09a Add more tests for opening directories that may or may not exist Ronnie Sahlberg 2024-12-16 15:38:31 +10:00
  • 08a48d6ab4 smb2-ls: exit code 0 on success, !0 on failure Ronnie Sahlberg 2024-12-16 15:20:04 +10:00
  • 157342911f Fix lifetime of cb_data for smb2_opendir Ronnie Sahlberg 2024-12-16 08:09:13 +10:00
  • c84927a5bf Merge pull request #383 from Wolf3s/ci-fixes Ronnie Sahlberg 2024-12-15 15:46:08 -05:00
  • 98405f0cee Build fixes for CI and other non Ci platforms Wolfywolfy 2024-12-15 10:37:24 -03:00
  • ce73a290da fix SEGV on failed opendir() Ronnie Sahlberg 2024-12-14 11:32:41 +10:00
  • badaf2ca65 tests: mode the dcerpc coder tests to the test directory Ronnie Sahlberg 2024-12-11 12:58:07 +10:00
  • b9444620ba New version 6.0.0 Ronnie Sahlberg 2024-12-11 12:04:53 +10:00
  • 139bc2d86b dcerpc: turn more encoder/decoder functions into _coder Ronnie Sahlberg 2024-11-01 05:11:19 +10:00
  • 5d9abb7bb8 tests: use smb2-ls instead of prog_ls Ronnie Sahlberg 2024-10-25 16:49:28 +10:00
  • 0c2cb9d378 tests: add cp test that tests both read and write to an smb2 share Ronnie Sahlberg 2024-10-25 16:25:51 +10:00
  • 02481bf5d5 tests: Copy a file over to the share before reading it back. Ronnie Sahlberg 2024-10-25 15:57:00 +10:00
  • af5e622e51 Add valgrind test for cat Ronnie Sahlberg 2024-10-25 14:15:57 +10:00
  • 7a569c66c8 utils: Add smb2-cp a utility to copy files to/from a share Ronnie Sahlberg 2024-10-24 16:41:52 +10:00
  • 00704521a0 NTLMSSP: remove the key-exchange flag forntlmssp Ronnie Sahlberg 2024-10-24 16:00:45 +10:00
  • 5e06a8182a Add a utils directory Ronnie Sahlberg 2024-10-24 15:59:50 +10:00
  • 0d94ee0a2e Merge pull request #373 from bdodge/bdd/oplock Ronnie Sahlberg 2024-10-23 02:29:56 -04:00
  • e77fa802a1 Merge branch 'master' into bdd/oplock Ronnie Sahlberg 2024-10-23 02:27:08 -04:00
  • 8c337af305 remove 466 hack, add NTLM flag to neg flags for ntlmssp bdodge 2024-10-16 12:59:37 -04:00
  • d92d16e3a7 spnego-wrap negotiate if needed bdodge 2024-10-16 11:48:47 -04:00
  • 8a87a676bf more complete file info bdodge 2024-10-15 07:01:35 -04:00
  • d82f553a4e leak patching bdodge 2024-10-15 06:58:05 -04:00
  • 03db442e99 fix some issues bdodge 2024-10-15 06:55:52 -04:00
  • fa127123b9 Merge branch 'master' of github.com:sahlberg/libsmb2 Ronnie Sahlberg 2024-10-15 19:42:56 +10:00
  • 39a63193f7 Merge pull request #378 from erikbernsen/master Ronnie Sahlberg 2024-10-15 05:42:46 -04:00
  • fc7d900836 tests: add tests for read Ronnie Sahlberg 2024-10-15 19:42:18 +10:00
  • d761687021 passthrough pending pdus (but keep in list) bdodge 2024-10-14 16:18:02 -04:00
  • d5b6722bcd cmake: fix some incorrect conditionals Ronnie Sahlberg 2024-10-14 09:26:40 +10:00
  • 8cee261861 Fix a memory leak. Erik Bernsen 2024-10-13 17:19:51 +02:00
  • 6cb7c4cbcc tests: improve test_0102 by counting how many calls to readv are needed Ronnie Sahlberg 2024-10-13 12:02:40 +10:00
  • 749abf7b7d Merge pull request #369 from Wolf3s/Cleanups Ronnie Sahlberg 2024-10-12 21:48:06 -04:00
  • fb8716cc37 Adding target properties for smb2man.irx Wolfywolfy 2024-10-12 12:01:55 -03:00
  • e0298ebcb6 Fix build on amiga os. Remove a useless comment and format it every comment to C89 Wolfywolfy 2024-10-12 07:53:16 -03:00
  • fe2106a4b1 Merge branch 'master' into Cleanups Wolf3s 2024-10-12 07:46:11 -03:00
  • 6ee386ac07 add all fs file info encoders/decoders, add all file info coders that deal with size/offsets bdodge 2024-10-10 07:08:52 -07:00
  • 328a8368f3 explict list of all file info classes for file and fs info switches bdodge 2024-10-09 07:27:34 -07:00
  • 6c74d4af35 use passthrough only for unknow fileinfo types bdodge 2024-10-09 06:47:34 -07:00
  • 69bc169d8d mkdir/rmdir: change into a compound and add tests Ronnie Sahlberg 2024-10-07 14:20:07 +10:00
  • c9789551e9 Add simple test for mkdir/rmdir Ronnie Sahlberg 2024-10-07 13:05:15 +10:00
  • 497ab9eb1a fix lead in disconnect_share on session failures Ronnie Sahlberg 2024-10-07 10:37:29 +10:00
  • 5a0ad8a06b destroy_context: reorder how we cancel/free pdus at context destruction Ronnie Sahlberg 2024-10-07 10:31:21 +10:00
  • d5f492fa43 tests: fix bug in prog_ls not checking return code for smb2_readlink Ronnie Sahlberg 2024-10-07 09:06:25 +10:00
  • 05eac44c0e opendir: fix leak of cb_data on session failures Ronnie Sahlberg 2024-10-07 08:54:49 +10:00
  • 5304e6705b cb_data: make the initial cb_data an embedded struct Ronnie Sahlberg 2024-10-07 08:06:49 +10:00
  • 18b9114a36 tests: do not call exit() without cleaning up from test program Ronnie Sahlberg 2024-10-07 07:38:28 +10:00
  • 9918577312 libsmb2: fix cb_data leak when session fails during early connect Ronnie Sahlberg 2024-10-07 07:23:39 +10:00
  • 1c7d60724a Merge branch 'master' of github.com:sahlberg/libsmb2 Ronnie Sahlberg 2024-10-06 16:00:26 +10:00
  • 82e518b218 Merge pull request #374 from amosavian/fix-write-position Ronnie Sahlberg 2024-10-06 01:59:34 -04:00
  • 1d855265e7 Fix pwrite offset encoding Amir Abbas Mousavian 2024-10-06 08:53:57 +03:30
  • e8d5a21da8 connect: we should not free cb_data if we have initiated the connect Ronnie Sahlberg 2024-10-06 14:20:31 +10:00
  • b397df45f7 tests: run the socket failure test from 1 to 43 Ronnie Sahlberg 2024-10-06 14:07:22 +10:00
  • 59b4656a98 connect: fix memoryleak if the session is lost during connect Ronnie Sahlberg 2024-10-06 14:03:30 +10:00
  • b9d6b1fcd8 tests: fix leak in test_0102 Ronnie Sahlberg 2024-10-06 13:52:21 +10:00
  • b6ff171ee9 tests: add tests to simulate socket failures and check with valgrind for leaks Ronnie Sahlberg 2024-10-06 13:01:26 +10:00
  • 9137c36bc1 tests: add a valgrind test for ls-basic Ronnie Sahlberg 2024-10-06 11:49:54 +10:00
  • b76f1af1c2 restore reply in handlers, needed for non-proxy case bdodge 2024-10-05 15:57:54 -04:00
  • 01a4ac90a6 no newline in seterr bdodge 2024-10-05 11:04:55 -04:00
  • 7c336cc4b1 Merge branch 'bdd/oplock' into bdd/leak-patrol bdodge 2024-10-05 10:27:59 -04:00
  • 679cf0f8eb Merge branch 'master' into bdd/oplock bdodge 2024-10-05 10:27:23 -04:00
  • ae30c42458 fix leaks, be more careful with cmd parsing to avoid leaks on errors, add flag to allow passing ownership of write buffer, use 0-copy read when possible bdodge 2024-10-05 10:24:30 -04:00
  • 77125da0aa functional oplock and lease breaks bdodge 2024-10-04 16:59:44 -04:00
  • e7afe36fdb allow break callback to do all the oplock work if passthrough bdodge 2024-10-04 15:13:49 -04:00
  • b98e49720a working oplock and lease break processing bdodge 2024-10-04 14:19:00 -04:00
  • 9250e573ba tests: add a basic test framework Ronnie Sahlberg 2024-10-04 16:29:32 +10:00
  • ce3edde5ac Merge pull request #371 from amosavian/swift-support-update Ronnie Sahlberg 2024-10-04 01:16:40 -04:00
  • 421f79e850 Merge pull request #372 from bdodge/bdd/pdu-passthrough Ronnie Sahlberg 2024-10-03 16:01:16 -04:00
  • a820a67502 add (untested) op/lease break pdu handling bdodge 2024-10-03 12:30:49 -04:00
  • 5377dd6031 add oplock break pdu handling, fix change-notify hdr size bdodge 2024-10-03 09:15:29 -04:00
  • 455097a637 w :qMerge branch 'bdd/pdu-passthrough' bdodge 2024-10-03 08:48:56 -04:00