summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clireadwrite.c
Commit message (Collapse)AuthorAgeFilesLines
* BIG patch...Andrew Bartlett2003-01-021-2/+3
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Document the size constraints on a write request.Richard Sharpe2003-01-011-2/+5
|
* Port the fix to cli_setup_write to handle offsets greater than 32-bits fromRichard Sharpe2002-12-301-2/+12
| | | | Samba 2.2.x ...
* merge from 2.2 fix for smbclient large filesHerb Lewis2002-12-191-1/+9
|
* Test was reversed for ERRmoredata in cli_read.Jeremy Allison2002-11-271-0/+10
| | | | Jeremy.
* Updates!Andrew Bartlett2002-08-261-1/+1
| | | | | | | | | | | - Don't print an uninitialised buffer in service.c - Change some charcnv.c functions to take smb_ucs2_t ** instead of void ** - Update NTLMv2 code to use dynamic buffers - Update experimental SMB signing code - still more work to do - Move sys_getgrouplist() to SAFE_FREE() and do a DEBUG() on initgroups() failure. Andrew Bartlett
* Fix up some of the SMB signing code:Andrew Bartlett2002-06-161-0/+11
| | | | | | | | | | | | | The problem was that *all* packets were being signed, even packets before signing was set up. (This broke the session request). This fixes it to be an 'opt in' measure - that is, we only attempt to sign things after we have got a valid, non-guest session setup as per the CIFS spec. I've not tested this against an MS server, becouse my VMware is down, but at least it doesn't break the build farm any more. Andrew Bartlett
* Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett2002-05-181-26/+27
| | | | | | | | | (only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett
* Correctly increment offset in cli_smbwrite.Jeremy Allison2002-03-201-0/+2
| | | | Jeremy.
* Test against W2K that we're doing large read/writes correctly (we are).Jeremy Allison2002-03-201-0/+9
| | | | | At least with 14 word writes. Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-6/+6
| | | | Jeremy.
* use cli_is_error() instead of looking in smb_rcls, otherwise NT statusAndrew Tridgell2001-09-051-2/+2
| | | | codes don't work correctly
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-4/+5
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* Re-added readbraw call to test with smbtorture. This code not yetJeremy Allison2001-08-241-1/+88
| | | | | tested... Jeremy.
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error.
* cli_read() was reading too many bytes.Andrew Tridgell2001-07-011-2/+1
|
* Use a logical cli_read(), removed the cli_read_one() hack.Jeremy Allison2001-06-291-124/+61
| | | | Jeremy.
* Merged cli_read_one() function for reading DCE/RPC reply fragments.Tim Potter2001-06-221-0/+46
|
* added some comments to make the cli read code clearerAndrew Tridgell2001-06-221-4/+14
|
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-5/+8
| | | | | | | | | but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour
* Set correct reply word in large writeX (greater than 64k) replies.Jeremy Allison2001-06-051-1/+5
| | | | | Also added smbtorture test for this. Jeremy.
* Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison2000-08-011-2/+2
| | | | | | | | NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy.
* split clientgen.c into several partsAndrew Tridgell2000-04-251-0/+273
the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier