summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-01-10Form a proper hierarchy in talloc_stackVolker Lendecke1-3/+10
This way talloc_stackframe() can benefit from a pool put on the stack further up. No need to remove talloc_stackframe(). (This used to be commit be6fe381168321ae62e079cd977cbef675c532d4)
2008-01-09Fixup hot paths - add macro for toupper (c < 0x80).Jeremy Allison2-11/+28
This now matches 3.0.x on my micro-tests. Jeremy. (This used to be commit 329b924cba8225002ca40db26c45b31d141a0925)
2008-01-09Add the calls to make use of talloc_pools in a talloc_stackframe.Jeremy Allison1-2/+16
Jeremy. (This used to be commit d27e6c0548d21394f6399d3b737d175ffed8420d)
2008-01-09Implement talloc_pool()Volker Lendecke3-7/+207
A talloc pool is a chunk of memory that can be used as a context for further talloc calls. Allocations with the pool as the parent just chew from that memory by incrementing a pointer. If the talloc pool is full, then we fall back to the normal system-level malloc(3) to get memory. The use case for talloc pools is the transient memory that is used for handling a single SMB request. Incrementing a pointer will be way faster than any malloc implementation. There is a downside of this: If you use talloc_steal() to move something out of the pool, the whole pool memory is kept around until the last object inside the pool is freed. So if you talloc_free() the pool, it might happen that the memory is freed later. So don't hang anything off a talloc pool that should live long. Volker (This used to be commit 287e29d988813007eeebc0c2bef3b46ab8bedee9)
2008-01-09Fix the max_dead_record calculationsVolker Lendecke1-4/+1
(This used to be commit 2a5c53220a5cc2b4a80fc7c6cb38e87789c5e797)
2008-01-09Change registry_create_admin_token() to return NTSTATUS.Michael Adam1-2/+11
Michael (This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
2008-01-09Move content of comment.Michael Adam1-4/+4
Michael (This used to be commit ed4dd00c5ae8e4995ace9326f915ae4bd15d96b3)
2008-01-09Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam3-33/+52
Michael (This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2008-01-09Add a comment.Michael Adam1-0/+1
Michael (This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
2008-01-09Fix talloctort: move size check after referenced ptr check.Michael Adam1-5/+5
Michael (This used to be commit 45b219642c529865a898625eeb0433c60b233867)
2008-01-09Save one popular mallocVolker Lendecke1-6/+18
(This used to be commit 2150663d9eaf5cdab08de2ad1fcc952d7e85936c)
2008-01-09Don't shrink a talloc area if we have less than 1k to gainVolker Lendecke1-0/+5
(This used to be commit 28a72ebd4541fb54f284da49081345e54130c75a)
2008-01-08Only realloc the talloc stack if necessaryVolker Lendecke1-7/+12
(This used to be commit c7cb98d486ef8af1dc7111c2316fd73db9fef9f8)
2008-01-08Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-testJelmer Vernooij11-116/+269
(This used to be commit ea36c3add588061cf338deabb2d8952f2213a8bd)
2008-01-08Correctly free buffers in netdomjoin-gui.Günther Deschner1-1/+8
Guenther (This used to be commit 04d78d4d9a8cffe44c927036038aef1d6d6b44b2)
2008-01-08Make name_buffer in NetGetJoinInformation() talloced.Günther Deschner1-2/+2
Guenther (This used to be commit 421905fb608df6736944ac21ac67abee24991521)
2008-01-08Add NetApiBufferFree() to libnetapi.Günther Deschner2-0/+19
Guenther (This used to be commit c49196954d38f0c2851abbfe25086cd6fe660a2e)
2008-01-08Fix crash bug when strequal is used too late in libnetapi_free.Günther Deschner1-5/+8
Guenther (This used to be commit ba2b8a310e1d6f78116350e24c17ae4db08b9bed)
2008-01-08Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().Michael Adam1-14/+14
Michael (This used to be commit 9296e93588c0e795cae770765050247ac1474a74)
2008-01-07Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam1-13/+13
Michael (This used to be commit 42663e8736e1a3dfb57e0aafdcbf5fec880da779)
2008-01-07Enable talloc reporting in libnetapi if DEVELOPER compiled.Günther Deschner1-0/+3
Guenther (This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)
2008-01-07make db_tdb_fetch use tdb_parse_recordVolker Lendecke1-13/+33
(This used to be commit 88d82d0623e71ae1ef4f8fdefba10e3a230ea526)
2008-01-07Change db_tdb_fetch_locked to use only one tallocVolker Lendecke1-35/+53
(This used to be commit 921c8657e2eeb71d5b9ae2675255a852b26cc30d)
2008-01-07talloc_stackframe only needs 1 tallocVolker Lendecke1-11/+7
(This used to be commit c0c2084d40b79e949dab7c68626aa665b9ea1a8e)
2008-01-07In libnetapi example, use libnetapi_get_error_string().Günther Deschner1-1/+6
Guenther (This used to be commit b624db92d61809a44881abbdd09dfa3a74ff7a88)
2008-01-07In the local path of NetJoinDomain, try to get error string from libnetjoin.Günther Deschner1-0/+3
Guenther (This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
2008-01-07Add libnetapi_set_error_string and libnetapi_get_error_string.Günther Deschner2-4/+33
Guenther (This used to be commit f8806bad8134d544229c426f58bee143ba752cf8)
2008-01-07Add krb5 cc env to libnetapi_ctx.Günther Deschner1-0/+4
Guenther (This used to be commit df2b078fa1658bdbff1280f7fe0b062d9eabd60c)
2008-01-07Let libnetapi use it's own krb5 cred cache in memory if necessary.Günther Deschner1-0/+33
Guenther (This used to be commit 863fb30038e384585502f0154a742481594b99d0)
2008-01-07Rearrange order of libnet join context init.Günther Deschner1-3/+3
Guenther (This used to be commit 89669c66f27fb47c9769d1058e29bff83f862752)
2008-01-07Free libnet_JoinCtx after joining.Günther Deschner1-1/+4
Guenther (This used to be commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779)
2008-01-07Close registry in libnetapi_free().Günther Deschner1-0/+1
Guenther (This used to be commit e7258a4408e40686ff090d0f8e120ce78acbd097)
2008-01-07Add NET_API_STATUS_SUCCESS define.Günther Deschner2-10/+14
Guenther (This used to be commit a72ad63163a8c642ea762087a739e6d63c37647a)
2008-01-07Add free_local_machine_name().Günther Deschner2-0/+6
Guenther (This used to be commit f3ebb4f96bb0364dae9924e798652e759b63bb52)
2008-01-07Fix two memleaks in libnetapi.Günther Deschner1-1/+4
Guenther (This used to be commit d73bde99e8518607bb78b5625ce5fb1991d8e402)
2008-01-07In gfree_debugsyms() free the format_bufr as well.Günther Deschner1-0/+2
Guenther (This used to be commit 48f09ca376f9fc7923309f3466e5d72f7c21a56f)
2008-01-07Failure while unjoining a domain is non-critical.Günther Deschner1-8/+2
Just continue joining to the workgroup in that case. Guenther (This used to be commit bf9ce2a928e3136d3bfe368f75d5b99273c5b04f)
2008-01-05Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-testJelmer Vernooij20-302/+326
(This used to be commit 5a30f6377d37d8a5cadce4fb9a2fc19b78fc1709)
2008-01-05selftest: Use platform-specific equivalents of LD_LIBRARY_PATH for Samba4's ↵Jelmer Vernooij1-13/+154
smbtorture. (This used to be commit 64ff1dad8664f14030c7d78c252d946216798a88)
2008-01-05Fix missing return - should be void.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 45ae90b77e53cd0cdf50939528dac4d2ca39b5c5)
2008-01-05Add general '-e' option to enable smb encryptionJeremy Allison2-1/+19
on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2008-01-04Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.Günther Deschner1-8/+4
Guenther (This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison2-95/+0
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2008-01-04Rename server_name to dc_name in libnet join structures.Günther Deschner1-6/+8
Guenther (This used to be commit ff5e15b1ba0d5c39ceef9f9995c107e510162564)
2008-01-04In libnet_join finally separate the admin from the machine pwd entirely.Günther Deschner1-5/+5
Guenther (This used to be commit d88bb94f0ef00ddbb48498797bd11448e0d74645)
2008-01-04Add debug switch to netdomjoin.Günther Deschner1-2/+10
Guenther (This used to be commit 2b221708c07967bccd68e8c7983791b4628405bb)
2008-01-04Minor cosmetic cleanup for netdomjoin-gui.Günther Deschner2-18/+37
Guenther (This used to be commit 02e3887f3962b469c965110b6141a6655f2347af)
2008-01-04Fix some error strings in netdomjoin-gui.Günther Deschner1-12/+31
Guenther (This used to be commit aaea8f1ed744e9662f92a3840d86ad1aff943d18)
2008-01-03Minor libnetapi join cosmetic cleanup.Günther Deschner1-3/+3
Guenther (This used to be commit 4deef80bed374af5032c0f3081d2ee3c70be99df)
2008-01-03Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().Michael Adam1-2/+2
Now all functions are converted to the consistent naming scheme. Michael (This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)