summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* s4:UID wrapper - Fix includesMatthias Dieter Wallnöfer2010-02-052-1/+19
| | | | | | | The includes of the UID wrapper headers werent't really efficient according to metze's post on the technical mailing list (http://lists.samba.org/archive/samba-technical/2010-February/069165.html). To achieve this move the "uid_wrapper.h" includes into "lib/util/unix_privs.c", "lib/util/util.c", "ntvfs/posix/pvfs_acl.c" and "ntvfs/unixuid/vfs_unixuid.c".
* Change uint_t to unsigned int in lib/utilMatt Kraai2010-02-024-6/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/util: remove data_blob_talloc_reference()Stefan Metzmacher2010-01-292-23/+0
| | | | | | We want to avoid the usage of talloc_reference() in Samba. metze
* s4-debug: removed debug_ctx(). It didn't catch on :-)Andrew Tridgell2010-01-091-4/+0
| | | | There was only one user, which isn't worth it for the overhead.
* lib/util: move TIME_T_MIN/MAX defines into header fileBjörn Jacke2010-01-072-14/+14
|
* Return NULL in strlower_talloc if src is NULLBrendan Powers2009-12-181-0/+4
| | | | | | Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* util: added binsearch.h for binary array searchesAndrew Tridgell2009-12-101-0/+68
| | | | | | This was moved from the schema_query code. It will now be used in more than one place, so best to make it a library macro. I think there are quite a few places that could benefit from this.
* util/util_strlist - add a call "const_str_list" for making "unconst" lists ↵Matthias Dieter Wallnöfer2009-12-012-0/+14
| | | | "const"
* charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵Matthias Dieter Wallnöfer2009-11-201-7/+7
| | | | | | "discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org>
* util/strlist: Fix up "const" warnings in the string list and test codeMatthias Dieter Wallnöfer2009-11-203-26/+30
| | | | | | This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/Volker Lendecke2009-11-142-25/+0
|
* Introduce tevent_req_poll_ntstatusVolker Lendecke2009-11-142-0/+25
|
* Introduce tevent_req_simple_finish_ntstatusVolker Lendecke2009-11-142-0/+22
|
* util: str_list_unique() bugfixKamen Mazdrashki2009-11-131-1/+1
| | | | | | j is actually the index of the last element in the list size of the list though is j+1 <- to make room for the terminating NULL element
* util: str_list_unique_2() test implementationKamen Mazdrashki2009-11-131-0/+33
| | | | | | | | Difference with previous test for str_list_unique() is that this test allows number of elements and number of duplicates to be supplied on command line using --option="list_unique:count=47" --option="list_unique:dups=7"
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-123-3/+26
| | | | | | | | | | | | Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
* lib/util Fix comments in rfc1738.c.Andrew Bartlett2009-11-041-3/+3
| | | | | | The Samba version does not use static buffers Andrew Bartlett
* lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett2009-11-024-69/+71
| | | | Andrew Bartlett
* lib/util Add rfc1738 escape/unescape code from SquidAndrew Bartlett2009-11-021-0/+209
| | | | | | | | This is intended to replace our rfc1738_unescape(), and give us an rfc1738_escape implementation (and hopefully is better tested and more secure). Andrew Bartlett
* util:ldb Allow multiple entries to be added in one LDIF snippitAndrew Bartlett2009-10-231-4/+7
|
* util: fixed place where we could look one byte past end of stringAndrew Tridgell2009-10-221-1/+1
| | | | We need to check the length before the value
* lib-util: check for too many combinations in generate_unique_strs()Andrew Tridgell2009-10-201-1/+10
|
* util: fixed generate_unique_strs() to be portableAndrew Tridgell2009-10-191-31/+13
| | | | | | 'place' was going negative, and giving undefined results. The result was duplicate names which gave errors in SMB2-DIR on PPC and other systems.
* s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki2009-10-163-16/+16
|
* Fix builds with external tdbSimo Sorce2009-10-111-1/+1
| | | | | | Make sure we do not reference our internal tdb directly. Let configure define what tdb.h file to use so that builds that use an extrenal tdb do not include 2 different versions of the tdb header.
* Fix builds with external tallocSimo Sorce2009-10-091-1/+1
| | | | | | Make sure we do not reference our internal talloc directly. Let configure define what talloc.h file to use so that builds that use an extrenal talloc do not include 2 different versions of the talloc header.
* asn1_tests: Fix typo in comment.Karolin Seeger2009-10-091-2/+2
| | | | Karolin
* s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl()Kamen Mazdrashki2009-10-011-30/+3
|
* s4/asn1: local TALLOC_CTX should be child of torture_contextKamen Mazdrashki2009-10-011-2/+2
|
* s4/asn1: fixed typo in torture messagesKamen Mazdrashki2009-10-011-2/+2
|
* s4/asn1: Added test for ber_read_partial_OID_String()Kamen Mazdrashki2009-10-011-0/+45
|
* s4/asn1: Added test for ber_read_OID_String()Kamen Mazdrashki2009-10-011-0/+32
|
* s4/asn1: Added test for ber_write_partial_OID_String()Kamen Mazdrashki2009-10-011-0/+74
|
* s4/asn1: Added test for ber_write_OID_String()Kamen Mazdrashki2009-10-011-0/+74
|
* s4/asn1: Added torture suite for ASN1Kamen Mazdrashki2009-10-011-0/+35
|
* util: strhex_to_str() fixed to handle '0x' correctlyKamen Mazdrashki2009-10-011-6/+6
|
* util: fixed compile time "discards qualifiers" warningKamen Mazdrashki2009-10-011-3/+3
|
* s4/drsuapi: ber_read_partial_OID_String() implementationKamen Mazdrashki2009-10-012-0/+37
|
* s4/drsuapi: Internal implementation for ber_read_OID_StringKamen Mazdrashki2009-10-011-0/+40
| | | | | | | Modified implementation _ber_read_OID_String_impl() returns how much bytes are converted. The intentation is to use this implementation both for reading OIDs and partial-OIDs in the future
* s4/drsuapi: ber_write_partial_OID_String() implementationKamen Mazdrashki2009-10-012-0/+36
|
* s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger2009-09-301-1/+1
| | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
* parmlist: Add more tests.Jelmer Vernooij2009-09-273-3/+92
|
* parmlist: Add basic tests for test_get_int().Jelmer Vernooij2009-09-271-0/+46
|
* util/parmlist: Add some more comments.Jelmer Vernooij2009-09-272-4/+36
|
* libutil: Add separate utility code for dealing with settings as aJelmer Vernooij2009-09-263-0/+102
| | | | collection of key/value pairs.
* lib/util: fix build warning.Günther Deschner2009-09-251-1/+1
| | | | Guenther
* Remove the const from the str_list_XXX functions thatJeremy Allison2009-09-242-24/+24
| | | | | | | allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy.
* s4-ldb: added a bunch more debug for DC joinAndrew Tridgell2009-09-221-2/+3
| | | | | These additional debug messages were added to help us track down w2k8->s4 domain join
* s4-util: windows only accepts lowercase hex encodings for extended DNsAndrew Tridgell2009-09-221-1/+4
|
* spnego: Support ASN.1 BIT STRING and use it in SPNEGO.Kouhei Sutou2009-09-172-0/+44
| | | | Signed-off-by: Günther Deschner <gd@samba.org>