summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clientgen.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".Jeremy Allison2009-09-061-1/+1
| | | | | | | | | | Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed from sys_read() to sys_recv(). read_socket_with_timeout() is called with non-fd's (with a pty in chgpasswd.c and with a disk file in lib/dbwrap_file.c via read_data()). recv works for the disk file, but not the pty. Change the name of read_socket_with_timeout() to read_fd_with_timeout() to make this clear (and add comments). Jeremy.
* 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-1/+1
| | | | | | | 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_echo to tevent_reqVolker Lendecke2009-04-061-79/+66
|
* Add new async libsmb infrastructureVolker Lendecke2009-04-061-0/+12
| | | | | | | | I know this is just yet another iteration, but I like this one much better than the one that exists right now :-) It will do trans and echo requests without a _recv helper and without unnecessary memcpy().
* s3:libsmb: use new simplified smb_signing code for the client sideStefan Metzmacher2009-03-231-9/+95
| | | | | | | | | | 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
* Fix a malloc/talloc mismatch when cli_initialise() failsVolker Lendecke2009-03-151-3/+2
|
* Remove pwd_cache.c, it was doing nothing. Make user_name, domain, andJeremy Allison2009-03-131-7/+52
| | | | | password talloc'ed strings within the cli_struct. Jeremy.
* Remove the static "struct client_connection" mess which is part ofJeremy Allison2009-03-121-1/+27
| | | | | | | | the problem that stops libsmbclient being thread safe. Subsidiary DFS connections are now hung off a list inside the cli_state struct. Much more to do in order to get libsmbclient to thread safety, but this is a good start. Jeremy.
* s3:libsmb: merge cli_setup_signing_state() into cli_initialise_ex()Stefan Metzmacher2009-03-061-27/+25
| | | | metze
* s3:libsmb: remove cli_setup_signing_state() and add struct cli_state ↵Stefan Metzmacher2009-03-061-2/+8
| | | | | | | | *cli_initialise_ex() This prepares the next changes. metze
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-3/+3
|
* Make is_andx_req non-staticVolker Lendecke2009-01-311-0/+25
|
* cli_ucs2Volker Lendecke2009-01-291-0/+10
|
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-2/+1
| | | | | the connections list and authentication structures to worry about. Jeremy
* Attempt to fix bug 5953: Make cli_send_smb_direct_writeX use writevVolker Lendecke2008-12-291-27/+13
| | | | | | It seems there are SMB servers around which can't cope with the write header being sent in a packet of its own. With writev we keep the advantage of direct writes, giving the kernel the chance to coalesce the write calls.
* Pass "bytes_alignment" up through cli_request_sendVolker Lendecke2008-12-191-1/+1
| | | | This parameter makes smb_spice_chain add padding before the bytes field
* Simplify async programming a bit with helper routinesVolker Lendecke2008-12-081-6/+1
| | | | Introduce async_req_is_error() and async_req_simple_recv()
* Make use of TALLOC_ZERO_PVolker Lendecke2008-09-211-3/+1
|
* Remove cli_request_get()Volker Lendecke2008-08-281-2/+2
| | | | | req->private_data==NULL at this point is definitely a bug. (This used to be commit ce3dc9f616cafc1289a94ac7cae0beca967d836e)
* Add async smbecho client supportVolker Lendecke2008-08-281-27/+139
| | | | (This used to be commit c1d645fbe39433541d8bfe6b818c855cee318dc5)
* Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.Jeremy Allison2008-07-011-1/+6
| | | | | Jeremy. (This used to be commit d85cbdbe296ec6de5bdbd66a90ca41345f55c837)
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-281-91/+3
| | | | | | can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-43/+5
| | | | (This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-2/+2
| | | | | This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
* Refactoring: Make struct rpc_pipe_client its own talloc parentVolker Lendecke2008-04-201-1/+1
| | | | (This used to be commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a)
* Add cli_setup_packet_bufVolker Lendecke2008-02-281-22/+32
| | | | | This is == cli_setup_packet but takes an explicit buffer argument (This used to be commit f64b46dc278899c3449cfd3dbb614aadcf5614d3)
* Make cli_struct a talloc parentVolker Lendecke2008-02-281-2/+2
| | | | (This used to be commit e69244a5c8c7c6b7c1897adc4b4b1cfdfc7a7999)
* Add explicit buf arg to cli_check_sign_macVolker Lendecke2008-02-281-1/+1
| | | | (This used to be commit ffc1c8cc03e6bad40ed2be91392074b4f038a1bf)
* Add explicit buf arg to cli_encrypt_message and cli_calculate_sign_macVolker Lendecke2008-02-281-2/+3
| | | | (This used to be commit db6ae9ed2326e6cd68475375d049084cf1d5a98c)
* Convert receive_smb_raw to NTSTATUSVolker Lendecke2008-02-021-4/+25
| | | | (This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
* read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke2008-02-021-1/+1
| | | | (This used to be commit 90554799afa42855c3e7b87dc632e67f0952f988)
* Get rid of read_socket_with_timeoutVolker Lendecke2008-02-021-2/+22
| | | | (This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
* read_socket_with_timeout has timeout=0 handlingVolker Lendecke2008-01-231-6/+2
| | | | (This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)
* Encryption works better when you add the client decrypt code :-).Jeremy Allison2007-12-261-0/+11
| | | | | Jeremy. (This used to be commit d67b2634068be9c69082a2b8c22c831aba371cd9)
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-35/+73
| | | | | | negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
* Some C++ warningsVolker Lendecke2007-12-211-2/+2
| | | | (This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
* 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. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
* 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. (This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
* 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. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
* 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. (This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)
* 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. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-81/+15
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r24223: Convert reply_echo to the new APIVolker Lendecke2007-10-101-7/+13
| | | | (This used to be commit 4863ff2899419e791ed0e340821072d004fb1d17)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* 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. (This used to be commit a398bdf08d9efac51af28aed29f2c0f151cd5aad)
* r22930: Next attempt to get the build farm in line.Volker Lendecke2007-10-101-1/+2
| | | | | Jeremy, please check this and merge if appropriate. (This used to be commit 0bdf4f1a5937abd0ef266700115d74396bc1629c)
* 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 (This used to be commit 9c5111d8c5064a43762d7d0146acff5e7691dafd)
* r22924: Fix the build by correctly processing readXJeremy Allison2007-10-101-21/+25
| | | | | | errors in the direct read case. Jeremy. (This used to be commit 6fe2ee3bd79fadfe43a9a84e03c398bd339259c1)