summaryrefslogtreecommitdiffstats
path: root/source/libsmb/climessage.c
Commit message (Collapse)AuthorAgeFilesLines
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-3/+3
| | | | | negotiation works. Jeremy.
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-19/+27
| | | | | Mostly compiles.... Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-3/+3
| | | | | | | 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-3/+3
|
* 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.
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-3/+3
| | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
* r12043: It's amazing the warnings you find when compiling on a 64-bitJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | box with gcc4 and -O6... Fix a bunch of C99 dereferencing type-punned pointer will break strict-aliasing rules errors. Also added prs_int32 (not uint32...) as it's needed in one place. Find places where prs_uint32 was being used to marshall/unmarshall a time_t (a big no no on 64-bits). More warning fixes to come. Thanks to Volker for nudging me to compile like this. Jeremy.
* r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter2007-10-101-2/+0
|
* Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison2004-03-111-1/+1
| | | | | | | | | "allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy.
* Attempt to fix the charcnv issues causing nmbd to crash. If we get a failedJeremy Allison2003-08-201-1/+1
| | | | | | conversion simply copy as is. Also fixed the horrid malloc-twice-copy code in the convert alloc path. Jeremy.
* applying David Lee's climessage patch to make sending messages more extendableGerald Carter2003-06-061-6/+32
|
* Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>Jeremy Allison2003-05-071-3/+2
| | | | Jeremy.
* Patch from Samuel Thibault to convert messages from dos to unix charsetJelmer Vernooij2003-03-201-3/+14
| | | | when sending(and vice versa when receiving).
* 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-3/+3
| | | | Jeremy.
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* The big character set handling changeover!Andrew Tridgell2001-07-041-4/+2
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually doesAndrew Tridgell2001-06-211-4/+7
| | | | | | | | send unaligned unicode strings sometimes! Fixed our handling of the workgroup name tacked on the end of the NT1 negprot response (a unaligned unicode) fixed a couple of places where we should be using the message_end fns instead of pre-calculated buffer lengths
* to use the same macros in the client and server rename the CLISTR_Andrew Tridgell2001-03-101-2/+2
| | | | macros to STR_
* converted a bunch more fnsAndrew Tridgell2001-02-201-6/+4
|
* - neater setting of bccAndrew Tridgell2001-02-201-1/+1
| | | | - converted cli_rename and cli_unlink
* split clientgen.c into several partsAndrew Tridgell2000-04-251-0/+122
the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier