Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-11-24 | s3:libsmb: implement cli_trans* on top of smb1cli_trans* | Stefan Metzmacher | 1 | -687/+120 | |
metze | |||||
2011-11-18 | s3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans() | Stefan Metzmacher | 1 | -0/+4 | |
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 18 15:13:52 CET 2011 on sn-devel-104 | |||||
2011-11-18 | s3:libsmb: fix compiler warning in cli_pull_trans() | Stefan Metzmacher | 1 | -1/+3 | |
metze | |||||
2011-11-18 | s3:libsmb: only align unicode pipe_name (bug #8586) | Stefan Metzmacher | 1 | -7/+11 | |
metze | |||||
2011-10-26 | s3:libsmb: make use of map_nt_error_from_unix_common() in clitrans.c | Stefan Metzmacher | 1 | -1/+1 | |
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 26 17:53:15 CEST 2011 on sn-devel-104 | |||||
2011-10-26 | s3:libsmb: avoid using smb_flg2 in cli_trans.c | Stefan Metzmacher | 1 | -1/+3 | |
metze | |||||
2011-10-26 | s3:libsmb: replace smb_size - 4 with MIN_SMB_SIZE in clitrans.c | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2011-10-26 | s3:libsmb: use 'tevent_' instead of 'event_' in clitrans.c | Stefan Metzmacher | 1 | -4/+4 | |
metze | |||||
2011-10-26 | s3:libsmb: make use of smb_buffer_oob() in clitrans.c | Stefan Metzmacher | 1 | -4/+4 | |
metze | |||||
2011-10-26 | s3:libsmb: use smb_len_nbt() in clitrans.c | Stefan Metzmacher | 1 | -2/+2 | |
metze | |||||
2011-09-13 | s3:libsmb: make use of cli_state_available_size() in cli_trans_format() | Stefan Metzmacher | 1 | -4/+5 | |
metze | |||||
2011-06-10 | s3:libsmb/clitrans: correctly transfer the seqnum between secondary and ↵ | Stefan Metzmacher | 1 | -3/+8 | |
primary requests This is needed to implement SMB signing correct. metze | |||||
2011-06-10 | s3:libsmb/clitrans: fix handling of multi pdu [nt]trans[s][2] calls | Stefan Metzmacher | 1 | -8/+80 | |
We now keep the primary request open for the whole logical request. The primary request is the one that gets all incoming replies. While secondary requests are handled as separate one-way requests. metze | |||||
2011-06-10 | s3:libsmb/clitrans: use subreq2 as variable for the secondary requests | Stefan Metzmacher | 1 | -7/+9 | |
metze | |||||
2011-06-10 | s3:libsmb/clitrans: move MID handling to the end of cli_trans_send() and add ↵ | Stefan Metzmacher | 1 | -2/+11 | |
a comment metze | |||||
2011-06-10 | s3:libsmb/clitrans: correctly marshall [nt]trans[s][2] requests | Stefan Metzmacher | 1 | -12/+41 | |
We need to align params and data to 4 byte offsets. This also correctly recalculates the useable space after each step. metze | |||||
2011-06-10 | s3:libsmb/clitrans: marshall SMBnttrans[2] as the others | Stefan Metzmacher | 1 | -23/+23 | |
This is just to make the code more readable and easier to notice how many words we're using in vwv. metze | |||||
2011-06-10 | s3:libsmb/clitrans: use uint32_t for param and data variables | Stefan Metzmacher | 1 | -3/+3 | |
SMBnttrans uses 32-bit values there. metze | |||||
2011-06-10 | s3:libsmb/clitrans: remove unused secondary_request_ctx | Stefan Metzmacher | 1 | -2/+0 | |
metze | |||||
2011-06-09 | s3-talloc Change TALLOC_ARRAY() to talloc_array() | Andrew Bartlett | 1 | -1/+1 | |
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc. | |||||
2011-05-19 | s3: Do central cli_set_error | Volker Lendecke | 1 | -3/+0 | |
2011-05-06 | s3-libsmb: move protos to libsmb/proto.h | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2011-04-29 | s3-tevent: only include ../lib/util/tevent wrappers where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104 | |||||
2011-03-24 | charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵ | Andrew Tridgell | 1 | -1/+1 | |
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104 | |||||
2011-01-17 | s3: Remove unused cli_send/receive_trans | Volker Lendecke | 1 | -331/+0 | |
2011-01-17 | s3: Remove unused cli_send/receive_nt_trans | Volker Lendecke | 1 | -341/+0 | |
2010-09-20 | s3-build: only include async headers where needed. | Günther Deschner | 1 | -1/+1 | |
Guenther | |||||
2010-08-05 | s3: Save the received trans2 from the inbuf in cli_trans | Volker Lendecke | 1 | -1/+10 | |
2010-02-22 | s3: Explicitly handle inbuf in cli_trans_done | Volker Lendecke | 1 | -2/+9 | |
2010-02-22 | s3: Add a talloc_move for the inbuf to cli_smb_recv | Volker Lendecke | 1 | -1/+2 | |
2009-11-14 | s3: Add min_setup, min_param and min_data to cli_trans_recv | Volker Lendecke | 1 | -8/+18 | |
Every caller that expects to receive something needs to check if enough was sent. Make this check mandatory for everyone. Yes, this makes the parameter list for cli_trans a bit silly, but that's just the way it is: A silly protocol request :-) While there, convert some _done functions to tevent_req_simple_finish_ntstatus. | |||||
2009-05-13 | s3: return proper error code in cli_smb_req_send | Bo Yang | 1 | -4/+7 | |
Signed-off-by: Bo Yang <boyang@samba.org> | |||||
2009-05-12 | Clean up assignments to iov_base, ensure it's always cast to void *. This ↵ | Jeremy Allison | 1 | -5/+5 | |
should quieten some warnings with picky compilers on the buildfarm. Jeremy. | |||||
2009-04-14 | Convert Samba3 to use the common lib/util/charset API | Andrew Bartlett | 1 | -5/+5 | |
This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett | |||||
2009-04-06 | Convert cli_trans to tevent_req | Volker Lendecke | 1 | -382/+272 | |
2009-04-05 | Remove async_req dependency from cli_pull_trans | Volker Lendecke | 1 | -23/+25 | |
2009-03-31 | Fix an uninitialized variable valgrind error | Volker Lendecke | 1 | -2/+2 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2009-03-23 | s3:libsmb: use new simplified smb_signing code for the client side | Stefan Metzmacher | 1 | -21/+33 | |
We store the seqnum/mid mapping in the cli_request structure for async requests and in the cli_state structure for sync calls. We skip the signing check for oplock requests while waiting for async requests coming in. metze | |||||
2009-03-19 | s3:libsmb: always create bytes array in cli_trans code | Stefan Metzmacher | 1 | -5/+14 | |
Otherwise we return NO_MEMORY without a reason for fragmented trans requests, as talloc_append_blob() returns buf if we append a 0 length blob. When we pass buf = NULL we'll get back NULL and then assume NO_MEMORY... metze | |||||
2009-03-19 | s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests | Stefan Metzmacher | 1 | -23/+7 | |
Before we send the secondary requests we need to remove the old mid=>seqnum mapping and reset cli->mid and make the new mid=>seqnum mapping "persistent". The bug we had in cli_send_trans was this: The first cli_send_smb() incremented cli->mid and the secondary requests used the incremented mid, but as cli->outbuf still had the correct mid, we send the correct mid to the server. The real problem was that the cli_send_smb() function stored the seqnum under the wrong mid. cli_send_nttrans() was totally broken and now follows the same logic as cli_send_trans(). The good thing is that in practice the problem is unlikely to happen, because max_xmit is large enough to avoid secondary requests. metze | |||||
2009-02-01 | Split up async_req into a generic and a NTSTATUS specific part | Volker Lendecke | 1 | -7/+7 | |
2009-01-29 | Add the strlen to push to smb_bytes_push_str, return the converted size | Volker Lendecke | 1 | -3/+3 | |
The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing. | |||||
2008-12-19 | Pass "bytes_alignment" up through cli_request_send | Volker Lendecke | 1 | -3/+3 | |
This parameter makes smb_spice_chain add padding before the bytes field | |||||
2008-12-08 | Simplify async programming a bit with helper routines | Volker Lendecke | 1 | -3/+3 | |
Introduce async_req_is_error() and async_req_simple_recv() | |||||
2008-11-28 | Move cli_trans_oob to lib/util.c | Volker Lendecke | 1 | -17/+4 | |
Rename it to trans_oob, it will be used in the server routines. | |||||
2008-09-10 | Fix some bogus compiler warnings | Volker Lendecke | 1 | -5/+10 | |
(This used to be commit 84ed752d9f17b2279bd60f534ce7c02b267a40b2) | |||||
2008-09-09 | Add async trans/trans2/nttrans calls to libsmb | Volker Lendecke | 1 | -0/+701 | |
Logic stolen from Samba4, naturally the specific implementation differs a bit. (This used to be commit 4b8bc5b03d35d563104791c0d8317d9886e4f032) | |||||
2008-05-13 | Fix signing problem in the client with transs requests | Volker Lendecke | 1 | -0/+3 | |
This is a different fix than Jeremy put into 3-0-test with 040db1ce85 and other branches with different hashes. Jeremy, I think your fix led to bug 5436, so I reverted your fix. This fixes the original problem I found with the transs requests for large rpc queries in a different way. Please check! Thanks, Volker (This used to be commit c572d537e088a3fffb057181cad9a3692e40b815) | |||||
2008-05-13 | Revert "Fix signing bug found by Volker. That one was *subtle*." | Volker Lendecke | 1 | -0/+14 | |
This reverts commit 816aea6c1a426eb2450061b847729e22bdac33a0. (This used to be commit e402e6508ca0806deef4c4044cfa6461b682850a) | |||||
2007-12-26 | Add SMB encryption. Still fixing client decrypt but | Jeremy Allison | 1 | -4/+4 | |
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104) |