summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/async_smb.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:libsmb: make use of cli_state_disconnect()Stefan Metzmacher2011-07-221-10/+3
| | | | metze
* s3:libsmb: make use of cli_state_is_connected()Stefan Metzmacher2011-07-221-1/+1
| | | | metze
* s3:libsmb: move cli_state->outgoing to cli_state->conn.outgoingStefan Metzmacher2011-07-221-2/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 22 09:53:59 CEST 2011 on sn-devel-104
* s3:libsmb: move cli_state->pending to cli_state->conn.pendingStefan Metzmacher2011-07-221-24/+26
| | | | metze
* s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind ↵Stefan Metzmacher2011-07-201-1/+1
| | | | | | cli_state_[g|s]et_tid() metze
* s3:libsmb: move cli->mid to cli->smb1.midStefan Metzmacher2011-07-201-1/+1
| | | | metze
* s3:libsmb: remove unused cli_smb_inbuf()Stefan Metzmacher2011-07-131-7/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 13 01:19:51 CEST 2011 on sn-devel-104
* s3:libsmb: don't use the cli->inbuf to store the last errorStefan Metzmacher2011-07-081-34/+16
| | | | | | | We keep the raw error in cli->raw_status now, until we fixed all caller to get the NTSTATUS from the function calls. metze
* Use tevent_req_oomVolker Lendecke2011-06-201-1/+1
| | | | This fixes a few Coverity errors
* s3:libsmb/async_smb: add helpers to get and set the seqnum for signingStefan Metzmacher2011-06-101-0/+14
| | | | | | This will be used for correct signing in [nt]trans[2][s] requests. metze
* s3:libsmb/async_smb: don't remove pending requests if the mid is setStefan Metzmacher2011-06-101-0/+15
| | | | | | | If the mid was set explicitly, it means the request expects more than one reply, so leave it in the pending array. metze
* s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor ↵Stefan Metzmacher2011-06-101-2/+2
| | | | | | directly metze
* s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way ↵Stefan Metzmacher2011-06-101-0/+18
| | | | | | requests metze
* s3: Remove a pointless if-statementVolker Lendecke2011-06-061-3/+1
| | | | | | | We are here only if we have more than one num_pending Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 6 18:21:17 CEST 2011 on sn-devel-104
* lib/util/time.c: timeval_current_ofs_msecRusty Russell2011-06-011-2/+1
| | | | | | | | | | Several places want "milliseconds from current time", and several were simply doing "msec * 1000" which can (and does in one place) result in a usec value over 1 a million. Using a helper to do this is safer and more readable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Directly call common_encrypt_buffer in cli_smb_req_iov_sendVolker Lendecke2011-05-231-2/+2
|
* s3: Do central cli_set_errorVolker Lendecke2011-05-191-0/+2
|
* s3: Make read_smb_send/recv publicVolker Lendecke2011-05-191-87/+1
|
* async_smb.c: convert cli->timeout properlyRusty Russell2011-05-101-1/+2
| | | | | | | | | | | | | | | I have a test failure on my 32-bit Ubuntu system, in that samba3.smbtorture_s3.plain(s3dc).LOCK9 immediately times out (rather than waiting 5 seconds for the child). Debugging revealed this code: timeout is in ms and is set to > 1000 in various places. The code dates from 2002, and other perturbations didn't reveal why it breaks now, but fix it anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue May 10 12:09:07 CEST 2011 on sn-devel-104
* 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-1/+1
|
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+2
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3-libsmb: move smb encryption structs into own header.Günther Deschner2011-03-161-0/+1
| | | | Guenther
* s3: Add async cli_session_requestVolker Lendecke2010-12-221-0/+127
| | | | This does not do the redirects, but I think that might be obsolete anyway
* s3: Make winbind recover from a signing errorVolker Lendecke2010-11-181-0/+2
| | | | | | | | | When winbind sees a signing error on the smb connection to a DC (for whatever reason, our bug, network glitch, etc) it should recover properly. The "old" code in clientgen.c just closed the socket in this case. This is the right thing to do, this connection is spoiled anyway. The new, async code did not do this so far, which led to the code in winbindd_cm.c not detect that we need to reconnect.
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+2
| | | | Guenther
* s3-libsmbclient Convert dos error codes to NTstatus in async libsmbclient.Jim McDonough2010-08-191-7/+1
| | | | | | | | | DOS error codes were being lost with the conversion to async libsmbclient. If we're passing around NTSTATUS internally, let's just convert it when we get it. DOS ACCESS_DENIED on nautilus was not prompting for other credentials, because it was not being mapped.
* If the timeout has been set to zero, don't register an end time.Jeremy Allison2010-03-301-3/+5
| | | | | | The caller doesn't want a timeout. Jeremy.
* s3: Fix the CHAIN1 torture testVolker Lendecke2010-02-281-1/+9
| | | | | | I've tried to solve this just within cli_smb_recv(), but I could not find a way to sanely determine when we are receiving the last entry in the chain just from looking at the blob. This solves it in an a bit more brutal way...
* s3: Explicitly handle inbuf in cli_smb_oplock_break_waiter_doneVolker Lendecke2010-02-221-2/+3
|
* s3: Add a talloc_move for the inbuf to cli_smb_recvVolker Lendecke2010-02-221-3/+8
|
* s3: Avoid calling cli_alloc_mid twice in cli_smb_req_iov_sendVolker Lendecke2010-02-211-1/+2
| | | | I hate macros....
* s3:async_smb: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* s3: NT_STATUS_MORE_PROCESSING_REQUIRED is a valid sesssetup return valueVolker Lendecke2010-01-031-9/+23
|
* s3: Restore correct timeouts for SMB requestsVolker Lendecke2009-12-221-0/+5
|
* s3: Remove a pointless else branchVolker Lendecke2009-12-221-5/+3
|
* s3: Move smb_splice_chain to smbd/process.c, its only userVolker Lendecke2009-12-221-174/+0
|
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-241-2/+2
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Fix broken pipe handlingVolker Lendecke2009-05-181-2/+2
| | | | | | | | Metze is right: If we have *any* error at the socket level, we just can not continue. Also, apply some defensive programming: With this async stuff someone else might already have closed the socket.
* s3: tevent_req_poll() loops forever when pipe is brokenBo Yang2009-05-191-0/+8
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher2009-05-131-0/+87
| | | | metze
* s3:libsmb: let cli_smb_chain_send() also return NTSTATUSStefan Metzmacher2009-05-131-9/+12
| | | | metze
* s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1Bo Yang2009-05-131-5/+7
| | | | | | | | | | | | This way we can destinguish between requests which failed because the connection broke after they were triggered and the requests which are started on an already broken connection. This also moves the check to cli_smb_req_iov_send() where it really belongs. metze
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-131-22/+28
| | | | 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-6/+6
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* s3: fix crash in winbinddBo Yang2009-04-291-0/+4
|
* Add async oplock waiterVolker Lendecke2009-04-061-1/+101
|
* Never hand out 0xffff as a midVolker Lendecke2009-04-061-1/+1
| | | | This is used for oplock replies
* Remove async_req based async libsmb infrastructureVolker Lendecke2009-04-061-869/+0
|