1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/libsmb
Tim Potter 2ccfea3de7 A rewrite of the error handling in the libsmb client code. I've separated
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.
(This used to be commit 6dbdb0d813)
2001-08-10 06:00:33 +00:00
..
.cvsignore ignore *.po32 files 1998-10-05 12:36:44 +00:00
cli_dfs.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_lsarpc.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_netlogon.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_pipe_util.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_samr.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_spoolss.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cli_srvsvc.c Factored out common rpc pipe initialisation and shutdown code. 2001-08-08 03:18:49 +00:00
cliconnect.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clidgram.c fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define 2001-06-25 02:53:13 +00:00
clientgen.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clierror.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clifile.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clilist.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
climessage.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clioplock.c added a oplock break handler hook to the client code, this allows for more complete testing of oplocks from smbtorture and would also be essential if a client app ever really did want to use oplocks properly 2001-06-18 08:26:15 +00:00
cliprint.c split clientgen.c into several parts 2000-04-25 14:04:06 +00:00
clirap.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clireadwrite.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
clisecdesc.c Renamed formal parameter fd to fnum because we're talking about SMB file 2001-07-05 08:24:03 +00:00
clistr.c The big character set handling changeover! 2001-07-04 07:15:53 +00:00
clitrans.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
credentials.c this is the bug change to using connection_struct* instead of cnum. 1998-08-14 17:38:29 +00:00
libsmbclient.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
namequery.c strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 2001-07-04 07:36:09 +00:00
nmblib.c strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 2001-07-04 07:36:09 +00:00
nterr.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
passchange.c this looks like a big commit, but it isn't really :) 2000-01-07 06:55:36 +00:00
pwd_cache.c The big character set handling changeover! 2001-07-04 07:15:53 +00:00
smbdes.c Add backend encryption support for NTLMv2. 2001-07-07 07:00:15 +00:00
smbencrypt.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
smberr.c A rewrite of the error handling in the libsmb client code. I've separated 2001-08-10 06:00:33 +00:00
unexpected.c Added "use mmap" for HPUX. 2001-07-30 22:21:31 +00:00