summaryrefslogtreecommitdiff
path: root/source3/libsmb/clireadwrite.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: add support for SMB2 in cli_writeall()Stefan Metzmacher2013-08-301-2/+12
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit ccf7b3719121e03ed06d15b9af5373eecba3e828)
* s3:libsmb: add SMB2 support to cli_pull*Stefan Metzmacher2013-08-301-14/+46
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a85d4511e6bc84938d60f090b44a5b1468ee4136)
* s3:libsmb: add SMB2 support to cli_push*Stefan Metzmacher2013-08-301-16/+50
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 6896bf0b28a07eb8ead5b3bd2bc50229aa59d439)
* s3:libsmb: remove unused cli_readall*Stefan Metzmacher2013-08-301-119/+0
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 9193a58375691bfca9e3cce1ff61b2b6dd65a982)
* s3:libsmb: rewrite cli_pull* to use smb1cli_conn_req_possible()Stefan Metzmacher2013-08-301-171/+246
| | | | | | | | | | | | | This works out if it's possible to ship the next request dynamically instead of relying on fixed values. The default window size is 16 MByte. We limit the number of outstanding chunks/requests to 256. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 8062aefbe3c2fcc73e3d19af6663c8736c570f7c)
* s3:libsmb: rewrite cli_push* to use smb1cli_conn_req_possible()Stefan Metzmacher2013-08-301-101/+187
| | | | | | | | | | | | | This works out if it's possible to ship the next request dynamically instead of relying on fixed values. The default window size is 16 MByte. We limit the number of outstanding chunks/requests to 256. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit b846b3acd2b217a0d67c1e8fcb039e03498c4e47)
* s3:libsmb: let cli_read_andx_create() accept any lengthStefan Metzmacher2013-03-201-7/+0
| | | | | | | It's up to the server to decide the allowed length. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-191-14/+14
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-191-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: remove unused 'inbuf' variableStefan Metzmacher2012-06-051-2/+1
| | | | metze
* s3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_sendLuk Claes2012-06-031-3/+3
| | | | | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jun 3 23:37:02 CEST 2012 on sn-devel-104
* s3:libsmb: get rid of clisigning routinesLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_has_async_callsLuk Claes2012-05-281-3/+4
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_encryption_onLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_max_requestsLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_capabilitiesLuk Claes2012-05-281-4/+4
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-10/+10
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* s3-libsmb Do not limit read replies to NBT packet sizesAndrew Bartlett2012-01-271-1/+1
| | | | | | | | | | With the posix extensions, we can read 16MB at a time, so we need to check the full size of the packet, not the size rounded down to the old NBT limit. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)Stefan Metzmacher2011-11-091-1/+1
| | | | | | | | | | | | Otherwise we may get unexpected results. This is a fix that was missing in commit 95595dd93fd04999fcf56ecaab7c29b064d021f8 (s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 9 10:13:32 CET 2011 on sn-devel-104
* s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)Stefan Metzmacher2011-11-081-4/+15
| | | | | | | | | | Print shares doesn't support CAP_LARGE_WRITEX, while it's negotiated by the file server part. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Nov 8 17:01:36 CET 2011 on sn-devel-104
* s3: Further fix for bug 8338Volker Lendecke2011-09-211-2/+9
| | | | | | | OS/X can not deal with a 10-vwv read on normal files. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Sep 21 00:51:08 CEST 2011 on sn-devel-104
* s3:libsmb: s/cli_encryption_on/cli_state_encryption_on()Stefan Metzmacher2011-09-151-2/+2
| | | | metze
* s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytesStefan Metzmacher2011-09-141-0/+8
| | | | | | | | s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytes metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytesStefan Metzmacher2011-09-141-21/+28
| | | | | | | | | | | | | | | s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0x1FFFF - data_offset if CAP_LARGE_WRITEX is given by the server (without signing) or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytesStefan Metzmacher2011-09-141-16/+31
| | | | | | | | | | | | | | | s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0xFFFF if CAP_LARGE_READX is given by the server or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: make use of cli_state_max_requests() in cli_push_send()Stefan Metzmacher2011-09-131-2/+5
| | | | metze
* s3:libsmb: make use of cli_state_max_requests() in cli_pull_send()Stefan Metzmacher2011-09-131-1/+4
| | | | metze
* s3:libsmb: make use of cli_state_available_size() in cli_smbwrite()Stefan Metzmacher2011-09-131-1/+2
| | | | metze
* s3:libsmb: make use of cli_state_available_size() in cli_write_max_bufsize()Stefan Metzmacher2011-09-131-1/+1
| | | | metze
* s3:libsmb: make use of cli_state_available_size() in cli_read_max_bufsize()Stefan Metzmacher2011-09-131-1/+1
| | | | metze
* 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