summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* | (merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett2003-03-221-2/+10
| | | | | | | | (This used to be commit 8315b9c3119dde62aeb72ad5e20f63aee89abd0b)
* | (merge from HEAD)Andrew Bartlett2003-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small clenaup patches: - safe_string.h - don't assume that __FUNCTION__ is available - process.c - use new workaround from safe_string.h for the same - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc() - gencache.c - Keep valgrind quiet by always null terminating. - clistr.c - Add copyright - srvstr.h - move srvstr_push into a .c file again, as a real function. - srvstr.c - revive, with 'safe' checked srvstr_push - loadparm.c - set a default for the display charset. - connection.c - use safe_strcpy() Andrew Bartlett (This used to be commit c91e76bddbe1244ddc8d12b092eba875834029ac)
* | Fix compile on IA64 by noting that this should be the integer, not a pointerAndrew Bartlett2003-03-221-1/+1
| | | | | | | | | | to the integer for SIVAL(). (This used to be commit 5e20868fadc4e01ea09639bc57c51d1eb687f78c)
* | Merge fixes to libsmbclient (fstring/pstring) from HEAD.Andrew Bartlett2003-03-221-19/+19
| | | | | | | | | | Andrew Bartlett (This used to be commit 6bf04c41ed88528345f6bb19d48f5909753a8322)
* | Patch from Samuel Thibault to convert messages from dos to unix charsetJelmer Vernooij2003-03-201-3/+14
| | | | | | | | | | when sending(and vice versa when receiving). (This used to be commit 5310447ec6e0df1c000e3ee14572f5b7fee31f28)
* | Removed unused var.Jeremy Allison2003-03-181-2/+0
| | | | | | | | | | Jeremy. (This used to be commit f93c64b5ca1bc21f5fa89200034cd82dcbc0910b)
* | Parinoia fixes from HEAD - malloc() some extra room after the allocatedAndrew Bartlett2003-03-181-2/+2
| | | | | | | | | | buffer size. (This used to be commit 27ec538eca0905e1f749de4c49cc2555c5932d5c)
* | Merge from HEAD:Andrew Bartlett2003-03-183-154/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A much better SMB signing module, that allows for mulitple signing algorithms and correctly backs down from signing when the server cannot sign the reply. This also attempts to enable SMB signing on NTLMSSP connections, but I don't know what NTLMSSP flags to set yet. This would allow 'client use signing' to be set by default, for server compatability. (A seperate option value should be provided for mandetory signing, which would not back down). Andrew Bartlett (This used to be commit 1c87be7a3d127201a6ab78d22d17c971af16b86b)
* | NTLMSSP updates from HEAD.Andrew Bartlett2003-03-181-12/+25
| | | | | | | | | | Andrew Bartlett (This used to be commit f4ae028c2ad6ff8c7da3a6ef77a92762861144e1)
* | Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett2003-03-183-5/+5
| | | | | | | | | | | | | | | | | | | | | | This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett (This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
* | This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2003-03-182-0/+669
|\| | | | | | | used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda)
| * Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!Andrew Bartlett2003-03-171-0/+2
| | | | | | | | | | Andrew Bartlett (This used to be commit a12e8524997e329a4f4cd766d6371e384698795a)
| * Minor fixes.Andrew Bartlett2003-03-151-2/+2
| | | | | | | | | | | | | | | | | | - signed/unsigned - quieten warning about assignment as truth value - whitespace Andrew Bartlett (This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)
| * String handling parinoia fixes.Andrew Bartlett2003-03-151-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables the compile-time checking of strings assable by means of sizeof(). (Original code had the configure check reversed). This is extended to all safe_strcpy() users, push_string and pull_string, as well as the cli and srv derivitives. There is an attempt to cap strings at the end of the cli buffer, and clobber_region() of the speified length (when not -1 :-). Becouse of the way they are declared, the 'overmalloc a string' users of safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips some of the checks). This whole ball of mud worked fine, until I pulled out my 'fix' for our statcache. When jeremy fixes that, we should be able to get back to testing this stuff. This patch also includes a 'marker' of the last caller to clobber_region (ie, the function that called pstrcpy() that called clobber_region) to assist in debugging problems that may have smashed the stack. This is printed at smb_panic() time. (Original idea and patch by metze). It also removes some unsused functions, and #if 0's some others that are unused but probably should be used in the near future. For now, this patch gives us some confidence on one class of trivial parsing error in our code. Andrew Bartlett (This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
| * specify the size of these buffersAndrew Bartlett2003-03-151-2/+2
| | | | | | | | (This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)
| * Specify buffer sizesAndrew Bartlett2003-03-151-2/+2
| | | | | | | | (This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)
| * Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.Andrew Bartlett2003-03-151-2/+2
| | | | | | | | | | Andrew Bartlett (This used to be commit 2effcae13f9dfbff40b34d32c7fd82118c3fd096)
| * client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugsAndrew Bartlett2003-03-151-6/+6
| | | | | | | | | | Andrew Bartlett (This used to be commit 7ab6559369b4e6ee3c5269d8cff04e5a39f6b493)
| * Add const, and a signed/unsigned fix.Andrew Bartlett2003-03-151-3/+3
| | | | | | | | (This used to be commit f07a93eaeba20f5704f43c7f02141adc564db136)
| * We haven't implemented The Singing Contexts so far.Rafal Szczesniak2003-03-141-1/+1
| | | | | | | | | | | | | | | | Who knows what .NET server brings, though ...? ;-) Rafal (This used to be commit d81b0d26903004be6a99ac029dd531fd18947268)
| * /tmp/newfun.msgRafal Szczesniak2003-03-141-3/+61
| | | | | | | | (This used to be commit 3f4cb7b2c4d9b54b41bcc184ccfd00032e2b021b)
| * Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().Andrew Bartlett2003-03-141-1/+1
| | | | | | | | | | Andrew Bartlett (This used to be commit f9c3c93f55cac774e576fd5975c0582e0b334d6a)
| * win2000 can take much longer than the specified time to respond to aAndrew Tridgell2003-03-131-1/+1
| | | | | | | | | | | | lock - so to make the torture tests valid I give it a grace time of 10 seconds instead of 2 (This used to be commit c9c9e9eb26ec3042395637d14a6661d04a629ccc)
| * Change size parameters from signed to unsigned to fix up warnings.Jeremy Allison2003-03-124-95/+190
| | | | | | | | | | Jeremy. (This used to be commit 2e9880ef7c259b67eb75edc8098b734c3b7b22c1)
| * Some conversion to pstrcpy_base.Volker Lendecke2003-03-101-6/+6
| | | | | | | | | | Volker (This used to be commit 329911e43681b724cb0579aad77b4a658759d7ba)
| * Further work on NTLMSSP-based SMB signing. Current status is that I cannnotAndrew Bartlett2003-03-104-48/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get Win2k to send a valid signiture in it's session setup reply - which it will give to win2k clients. So, I need to look at becoming 'more like MS', but for now I'll get this code into the tree. It's actually based on the TNG cli_pipe_ntlmssp.c, as it was slightly easier to understand than our own (but only the utility functions remain in any way intact...). This includes the mysical 'NTLM2' code - I have no idea if it actually works. (I couldn't get TNG to use it for its pipes either). Andrew Bartlett (This used to be commit a034a5e381ba5612be21e2ba640d11f82cd945da)
| * Try not to clobber the session request.Andrew Bartlett2003-03-091-3/+15
| | | | | | | | (This used to be commit 05cffbee56f0556f550b4d14f3111bd7db972621)
| * Change the way we sign SMB packets, to a function pointer interface.Andrew Bartlett2003-03-094-146/+338
| | | | | | | | | | | | | | | | | | The intention is to allow for NTLMSSP and kerberos signing of packets, but for now it's just what I call 'simple' signing. (aka SMB signing per the SNIA spec) Andrew Bartlett (This used to be commit b9cf95c3dc04a45de71fb16e85c1bfbae50e6d8f)
| * Make it clear that this is a fstrcpy().Andrew Bartlett2003-03-081-2/+2
| | | | | | | | (This used to be commit c2a266b7b661d319e13982bfdbc3a86e8502b8a4)
| * Writable string const fixes.Jeremy Allison2003-03-051-1/+1
| | | | | | | | | | Jeremy. (This used to be commit 60b0cfc8a5b6275d3460ebc6bf17d0f08e25b67e)
| * Connectathon fix. W2K -> W2K over port 445 doing a tconX does the fullJeremy Allison2003-03-051-7/+2
| | | | | | | | | | | | | | \\server\share syntax, not just a "share" tconX syntax. This broke interop with a vendor. Jeremy. (This used to be commit 9d7ea5585c873156ede4b56e43a0d4d75077283a)
| * Do my janitorial duties to encourage others to do so.Richard Sharpe2003-03-031-1/+1
| | | | | | | | | | Fix lingering large offset problems in smbtar etc. (This used to be commit c416eec2f2a38eebfcda5868999d474628037f1e)
| * Add constAndrew Bartlett2003-03-031-1/+1
| | | | | | | | (This used to be commit 251b91f46988053eccc53f814a23ed5ca787c852)
| * the new DEVELOPER checks for string overflows have (as expected)Andrew Tridgell2003-03-011-3/+3
| | | | | | | | | | | | | | broken a lot of stuff. These two macros are meant to make life easier when fixing these bugs. I'm guessing we will see more macros like this (eg. fstrcpy_base) (This used to be commit 50389c0cb2504d7941ec691af21d6a20ae5c5de7)
| * Netlogon-unigroup changes needed for the winbind RID-to-SID conversion.Andrew Bartlett2003-02-261-12/+25
| | | | | | | | | | | | | | | | This changes the cache format, which will simply invalidate existing entries, leaving them dead in the cache. Andrew Bartlett (This used to be commit 3fc179362ea849db23490b971a9f64f943e7f7f8)
| * Fix unused variable warning when ENCTYPE_ARCFOUR_HMAC is not defined.Tim Potter2003-02-251-0/+2
| | | | | | | | (This used to be commit 92abafa62894a125c5a09fc92f5056e4d8b51089)
| * Clean up non-krb5 breakages from my modifications to luke howard's patch.Andrew Bartlett2003-02-241-7/+1
| | | | | | | | | | Andrew Bartlett (This used to be commit 32fd0c49009e38022523cc5c14567dd55de08206)
| * Patch from Luke Howard to add mutual kerberos authentication, and SMB sessionAndrew Bartlett2003-02-243-23/+64
| | | | | | | | | | | | | | keys for kerberos authentication. Andrew Bartlett (This used to be commit 8b798f03dbbdd670ff9af4eb46f7b0845c611e0f)
| * Fix IRIX build...void fn can't return another void fnJim McDonough2003-02-211-1/+2
| | | | | | | | (This used to be commit df3c7c9cbb275e9c35356b4f1cab1a741de6f500)
| * Doesn't anyone run ./configure.developer anymore?Tim Potter2003-02-211-1/+1
| | | | | | | | (This used to be commit 09be123c6c1b67621eaf6c8ffb3016eccd375e5b)
| * Can't return SAFE_FREE...put on its own line.Jim McDonough2003-02-191-1/+2
| | | | | | | | (This used to be commit 9f1a4809b503f050189d5f87a294b7d8675b1e95)
| * Correct way to keep fucntion from proto.hJim McDonough2003-02-191-7/+4
| | | | | | | | (This used to be commit 762b072efb0d6801775a874494cb19ea3d61fa97)
| * After a talloc_zero(), we don't need to ZERO_STRUCTP too..Andrew Bartlett2003-02-191-4/+0
| | | | | | | | (This used to be commit 4fe8066394143c64c79c052c00f0d747e872103a)
| * Only do a kinit if we got told to use kerberos.Andrew Bartlett2003-02-191-12/+12
| | | | | | | | | | Andrew Bartlett (This used to be commit 6af9ec50e010d171cf5287f40ec774e79e4a93fe)
| * Get non-krb systems to compile. How the heck do I keep something from being ↵Jim McDonough2003-02-191-8/+9
| | | | | | | | | | | | sucked into proto.h? (This used to be commit 7e84497882df5bf933ab7ae7fe9af3728393202c)
| * Try to get heimdal working with HEAD.Jim McDonough2003-02-191-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | - Provide generic functions for - get valid encryption types - free encryption types - Add encryption type parm to generic function create_kerberos_key_from_string() - Try to merge the two versions (between HEAD and SAMBA_3_0) of kerberos_verify.c I think this should work for both MIT and heimdal, in HEAD. If all goes smooth, I'll move it over to 3.0 soon... (This used to be commit 45e409fc8da9f26cf888e13d004392660d7c55d4)
* | Merge in the developer string options from HEAD. We need to ensure 3.0Jeremy Allison2003-03-181-7/+21
| | | | | | | | | | | | | | is as stable as possible in the string department and some pain now will help later :-). Jeremy. (This used to be commit 86e3eddac698d90f4666b8492b4603a4efbbd67b)
* | Merge from HEAD:Andrew Bartlett2003-03-171-3/+3
| | | | | | | | | | | | | | | | | | signed/unsigned (mostly i counters) a little bit of const. Andrew Bartlett (This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727)
* | Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard'sAndrew Bartlett2003-03-172-22/+59
| | | | | | | | | | | | | | session key and auth verifier patches. Andrew Bartlett (This used to be commit 3f9616a68a855acbae3f405c27ee2358fbe7ba2c)
* | pstrcpy_base merges for client-side smbpasswd.Andrew Bartlett2003-03-171-9/+9
| | | | | | | | | | Andrew Bartlett (This used to be commit 980f2eb7c2efa1a2c83098aebecf0e25a05724cb)