summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clientgen.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove cli_request_get()Volker Lendecke2008-08-281-2/+2
| | | | req->private_data==NULL at this point is definitely a bug.
* Add async smbecho client supportVolker Lendecke2008-08-281-27/+139
|
* Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.Jeremy Allison2008-07-011-1/+6
| | | | Jeremy.
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-281-91/+3
| | | | | can result in a buffer overrun. Jeremy.
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-43/+5
|
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-2/+2
| | | | This reduces the dependency on cli_state
* Refactoring: Make struct rpc_pipe_client its own talloc parentVolker Lendecke2008-04-201-1/+1
|
* Add cli_setup_packet_bufVolker Lendecke2008-02-281-22/+32
| | | | This is == cli_setup_packet but takes an explicit buffer argument
* Make cli_struct a talloc parentVolker Lendecke2008-02-281-2/+2
|
* Add explicit buf arg to cli_check_sign_macVolker Lendecke2008-02-281-1/+1
|
* Add explicit buf arg to cli_encrypt_message and cli_calculate_sign_macVolker Lendecke2008-02-281-2/+3
|
* Convert receive_smb_raw to NTSTATUSVolker Lendecke2008-02-021-4/+25
|
* read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke2008-02-021-1/+1
|
* Get rid of read_socket_with_timeoutVolker Lendecke2008-02-021-2/+22
|
* read_socket_with_timeout has timeout=0 handlingVolker Lendecke2008-01-231-6/+2
|
* Encryption works better when you add the client decrypt code :-).Jeremy Allison2007-12-261-0/+11
| | | | Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-35/+73
| | | | | negotiation works. Jeremy.
* Some C++ warningsVolker Lendecke2007-12-211-2/+2
|
* Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison2007-11-291-8/+0
| | | | | | Make us very explicit about how long a talloc ctx should last. Jeremy.
* Remove the horror that was the global smb_rw_error.Jeremy Allison2007-11-051-11/+12
| | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy.
* Remove the smb_read_error global variable and replaceJeremy Allison2007-11-031-11/+10
| | | | | it with accessor functions. "One global or pstring a day...." :-). Jeremy.
* Change the client library to write directly out ofJeremy Allison2007-11-021-3/+62
| | | | | | | the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-9/+9
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-81/+15
|
* r24223: Convert reply_echo to the new APIVolker Lendecke2007-10-101-7/+13
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22950: Fix the issue Volker reported here :Jeremy Allison2007-10-101-27/+1
| | | | | | | | | | | | | | | | | | | | "Attempt to fix some build farm failures: On port 139 the first successful packet gives len==0 from the server, so the = in if (len <= 0) { in line 136 of clientgen.c throws a failure." The irritating thing is that I already had it correct in SAMBA_3_0_26 and forgot to merge the change across. len == 0 is a valid return - I messed that up when converting client_receive_smb() to return a length rather than a BOOL. Doh ! Jeremy.
* r22930: Next attempt to get the build farm in line.Volker Lendecke2007-10-101-1/+2
| | | | Jeremy, please check this and merge if appropriate.
* r22929: Attempt to fix some build farm failures: On port 139 the firstVolker Lendecke2007-10-101-0/+26
| | | | | | | | | | | | | successful packet gives len==0 from the server, so the = in if (len <= 0) { in line 136 of clientgen.c throws a failure. Jeremy, please fix this properly, I'm not merging this to 3_0_26 so that you can filter it when you merge. Volker
* r22924: Fix the build by correctly processing readXJeremy Allison2007-10-101-21/+25
| | | | | errors in the direct read case. Jeremy.
* r22920: Add in the UNIX capability for 24-bit readX, as discussedJeremy Allison2007-10-101-14/+113
| | | | | | with the Apple guys and Linux kernel guys. Still looking at how to do writeX as there's no recvfile(). Jeremy.
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-2/+2
| | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
* r22212: Cope with signature errors on sessionsetupX loginsJeremy Allison2007-10-101-0/+20
| | | | | | where the server just reflects our signature back to us. Allow the upper layer to see the real error. Jeremy.
* r21994: Ignore keepalives in the correct buffer (out not in :-).Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r21993: Don't let keepalives interferece with sign or sealJeremy Allison2007-10-101-0/+5
| | | | | in the client code. Jeremy.
* r21992: Fix keepalive processing when encryption turned on.Jeremy Allison2007-10-101-6/+26
| | | | Jeremy.
* r21991: I hate Steve French :-). Add support for encryptionJeremy Allison2007-10-101-2/+5
| | | | | contexts.... Jeremy.
* r21990: Stop messing with the signing engine just becauseJeremy Allison2007-10-101-10/+10
| | | | | | we're encrypted. This will make further changes and spec much more clear. Jeremy.
* r21939: Fix missing initialization thatJeremy Allison2007-10-101-1/+1
| | | | | | broke the build farm. Thanks to Metze for the heads up. Jeremy.
* r21922: Fixed the build by rather horrid means. I really needJeremy Allison2007-10-101-27/+31
| | | | | | | to restructure libsmb/smb_signing.c so it isn't in the base libs path but lives in libsmb instead (like smb_seal.c does). Jeremy.
* r21880: Make client and server calls into encryption code symetrical,Jeremy Allison2007-10-101-3/+10
| | | | | depending on encryption context pointer. Jeremy.
* r21865: Add in the stubs for SMB transport encryption. Will fleshJeremy Allison2007-10-101-5/+31
| | | | | | | these out as I implement. Don't add to SAMBA_3_0_25, this is experimental code. NFSv4 you're now officially on notice... :-). Jeremy.
* r20124: clean up nested extern declaration warningsHerb Lewis2007-10-101-1/+2
|
* r18014: revert a possibly unnecessary changeDerrell Lipman2007-10-101-1/+2
|
* r18011: Should fix bug 3835.Derrell Lipman2007-10-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Jeremy: requires your eyes... If the remote connection timed out while cli_list() was retrieving its list of files, the error was not returned to the user, e.g. via smbc_opendir(), so the user didn't have a way to know to set the timeout longer and try again. This problem would occur when a very large directory is being read with a too-small timeout on the cli. Jeremy, although there were a couple of areas that needed to be handled, I needed to make one change that you should bless, in libsmb/clientgen.c. It was setting cli->smb_rw_error = smb_read_error; but smb_read_error is zero, so this had no effect. I'm now doing cli->smb_rw_error = READ_TIMEOUT; instead, and according to the OP, these (cumulative) changes (in a slightly different form) solve the problem. Please confirm this smb_rw_error change will have no other adverse effects that you can see. Derrell
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-31/+9
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16458: Increase debuglevel of cli_rpc_pipe_close().Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r16356: Helping derrell out. Jeremy.Jeremy Allison2007-10-101-1/+1
| | | | Only set the DFS capability flag if the share is a DFS root. Fixes bug 3814.
* r13676: have to return a value from a non-void functionGerald Carter2007-10-101-1/+1
|