summaryrefslogtreecommitdiffstats
path: root/lib/util/asn1.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix our asn.1 parser to handle negative numbers.Jeremy Allison2011-05-241-0/+9
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 24 22:57:16 CEST 2011 on sn-devel-104
* asn1: Fix Coverity ID 2299, CHECKED_RETURNVolker Lendecke2011-04-221-1/+5
|
* lib/util/asn1.c - remove the "const" specifier from OIDMatthias Dieter Wallnöfer2010-12-211-8/+9
| | | | There is no reason to have it "const" since it's an allocated thing.
* asn1: ber_write_OID_String() to be more picky about supplied OIDKamen Mazdrashki2010-10-221-0/+5
| | | | | | | Now function will check for invalid OID handling cases where: - sub-identifier has invalid characters (non-digit) - 'dot' separator found on unexpected place. For instance '.' at start or end of the OID. Two '.' in a row.
* lib/util/asn1.c: comment spellingKamen Mazdrashki2010-10-201-1/+1
|
* lib/util/asn1: let asn1_peek_full_tag() return an error if we fail to parse ↵Stefan Metzmacher2010-10-041-1/+13
| | | | | | | | | tag hdr/len metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 4 14:46:40 UTC 2010 on sn-devel-104
* s3: Fix a 64-bit BUGVolker Lendecke2010-10-021-1/+1
| | | | | | | | | | | | | | | Quick explanation why this is a problem: It is not safe to pass a pointer to a uint32_t into a routine that expects a size_t *. The routine that this pointer is passed to has no chance to find out that in reality it was passed a pointer to a uint32_t. On platforms where sizeof(size_t)==8, we get a nice overwrite of a stack area that should not be overwritten. As this happens over an over again: Does someone know a means to make gcc stop with an error in this case? Volker
* lib/util/asn1: add asn1_peek_tag_needed_size() and asn1_peek_full_tag()Stefan Metzmacher2010-09-261-0/+83
| | | | | | | We need a way to ask for the length of a tag without having the full buffer yet. metze
* Fix an uninitialized variableVolker Lendecke2010-03-211-0/+4
|
* Change uint_t to unsigned int in lib/utilMatt Kraai2010-02-021-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki2009-10-161-11/+11
|
* s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl()Kamen Mazdrashki2009-10-011-30/+3
|
* s4/drsuapi: ber_read_partial_OID_String() implementationKamen Mazdrashki2009-10-011-0/+36
|
* 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-011-0/+35
|
* spnego: Support ASN.1 BIT STRING and use it in SPNEGO.Kouhei Sutou2009-09-171-0/+42
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* util/asn1: fix potential memory leak in asn1_write_OID()Stefan Metzmacher2009-07-311-0/+1
| | | | metze
* Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke2009-06-201-0/+10
|
* Move asn1_blob() to lib/util/asn1.cVolker Lendecke2009-06-201-0/+16
|
* added asn1 functions for handling booleans in a simple contextAndrew Tridgell2009-06-101-0/+23
|
* Use data_blob_null instead of data_blob(NULL, 0)Volker Lendecke2009-06-061-1/+1
|
* lib-util: fix c++ compile warning.Günther Deschner2008-10-221-1/+1
| | | | Guenther
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+770
Conflicts: source4/Makefile