summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clireadwrite.c
Commit message (Collapse)AuthorAgeFilesLines
* 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