summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clireadwrite.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb/cli*: make use of cli_state_capabilities()Stefan Metzmacher2011-08-021-4/+4
| | | | metze
* s3-libsmb: finally remove cli_read_old()Björn Baumbach2011-07-231-14/+0
| | | | | | Replaced by new cli_read() which returns NTSTATUS instead of ssize_t. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: introduce new NTSTATUS cli_read()Björn Baumbach2011-07-201-0/+20
| | | | | | Replacement for cli_read_old() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: replace cli_read() with cli_read_old()Björn Baumbach2011-07-201-1/+1
| | | | | | Will introduce new cli_read() function. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Allow NULL for arg pwritten in cli_write_andxVolker Lendecke2011-07-031-1/+3
|
* s3:libsmb/clireadwrite: calculate cli_write_max_bufsize() correct based on ↵Stefan Metzmacher2011-06-101-8/+12
| | | | | | | | | max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
* s3:libsmb/clireadwrite: calculate cli_read_max_bufsize() correct based on ↵Stefan Metzmacher2011-06-101-1/+12
| | | | | | | | | max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3: Do central cli_set_errorVolker Lendecke2011-05-191-10/+0
|
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-051-2/+2
|
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-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
* s3: Remove cli_writeVolker Lendecke2011-04-261-158/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add cli_writeallVolker Lendecke2011-04-261-3/+51
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Use tevent_req_nterror properly in a few placesVolker Lendecke2011-04-161-12/+6
|
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Remove a use of cli_send_smbVolker Lendecke2011-03-271-36/+47
|
* Fix bug #7791 - gvfsd-smb (Gnome vfs) fails to copy files from a SMB share ↵Jeremy Allison2010-11-111-5/+2
| | | | | | | | | | | | | | using SMB signing. The underlying problem is that the old code invoked by cli_write() increments cli->mid directly when issuing outstanding writes. This should now be done only in libsmb/clientgen.c to make metze's new signing engine works correctly. Just deleting this code fixes the problem. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Nov 11 02:50:08 UTC 2010 on sn-devel-104
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther
* s3-libsmb: fix argument order for tevent_req_default_print in cli_pull_print().Günther Deschner2010-05-091-1/+1
| | | | | | Andreas, please check. Guenther
* s3-libsmb: Fixed a recursion in cli_pull_print.Andreas Schneider2010-05-051-1/+1
|
* Split out the client unix capabilities to those the server offered, and ↵Jeremy Allison2010-04-131-2/+2
| | | | | | | | | those the client asked for. This fixes a bug when using encrypted transport and DFS links. Found by my basic DFS torture test, which I'll check in next. Testing *rocks* :-). Jeremy.
* s3: Explicitly handle inbuf in cli_write_andx_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_read_andx_doneVolker Lendecke2010-02-221-2/+2
|
* s3: Add a talloc_move for the inbuf to cli_smb_recvVolker Lendecke2010-02-221-3/+3
|
* s3: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* Second part of bug fix for 6606.Volker Lendecke2009-09-141-0/+6
| | | | s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled
* s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handledVolker Lendecke2009-09-141-4/+118
|
* s3:libsmb: Convert (state->received) to (state->received != 0)Volker Lendecke2009-09-051-1/+1
| | | | This confused me for a second, this should not happen a second time :-)
* Fix Red Hat bugzilla bug : https://bugzilla.redhat.com/show_bug.cgi?id=516165Jeremy Allison2009-08-191-1/+1
| | | | | | | | | | nautilus fails to copy files from an SMB share. This is a show-stopper for 3.4.1 (I'll open a Samba.org bug). Although gnome-vfs is doing *incredibly* stupid things by asking for a read size of 65535 - this translates on the wire to a 65534 byte read followed by a 1 byte read. Please send this back to the gnome developers that they will ge horrid on the wire performance for this. Jeremy.
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-131-4/+16
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-121-2/+2
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-6/+6
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* Convert cli_push to tevent_reqVolker Lendecke2009-04-081-69/+58
| | | | | | | | Metze, please check! Thanks, Volker
* Convert cli_pull to tevent_reqVolker Lendecke2009-04-081-45/+40
|
* Streamline cli_push sync wrapperVolker Lendecke2009-04-061-9/+18
|
* Convert cli_write_andx to tevent_reqVolker Lendecke2009-04-061-37/+88
|
* Streamline cli_pull sync wrapperVolker Lendecke2009-04-061-9/+18
|
* Convert cli_read_andx to tevent_reqVolker Lendecke2009-04-061-108/+150
|
* Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher2009-03-121-25/+8
| | | | | | | | | | | | | buffers" This reverts commit 9579a6f193f570e4ce2af80f4aac7c2f25ae5b22. It's confusing to have a boolean to alter the behavior of cli_push and as the new feature isn't used yet I revert it. We can readd a extra function later. metze
* s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher2009-03-101-8/+25
| | | | metze
* s3:libsmb: only treat a return 0 as end of fileStefan Metzmacher2009-03-101-4/+1
| | | | metze
* s3:libsmb: fix a lot of cli_push() bugsStefan Metzmacher2009-03-101-95/+107
| | | | | | | | | | | | There were the following problems: 1.) if window_size was a multiple of the chunk_size, we silently dropped the last truncated chunk. 2.) if window_size was 0 pushed only the first chunk to the server and silently dropped the rest. 3.) we had only transferred state->num_reqs writes, even if there would be more data to send. metze
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-021-1/+1
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-16/+16
|
* Add a macro async_req_setup()Volker Lendecke2009-01-181-25/+9
| | | | This streamlines setting up a multi-step async request a bit
* struct async_req doesn't really need to carry an event_contextVolker Lendecke2009-01-031-5/+5
|
* Add async cli_write_andx and cli_pullVolker Lendecke2008-12-191-0/+406
|