summaryrefslogtreecommitdiff
path: root/lib/util/asn1.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-04lib/util/asn1: let asn1_peek_full_tag() return an error if we fail to parse ↵Stefan Metzmacher1-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
2010-10-02s3: Fix a 64-bit BUGVolker Lendecke1-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
2010-09-26lib/util/asn1: add asn1_peek_tag_needed_size() and asn1_peek_full_tag()Stefan Metzmacher1-0/+83
We need a way to ask for the length of a tag without having the full buffer yet. metze
2010-03-21Fix an uninitialized variableVolker Lendecke1-0/+4
2010-02-02Change uint_t to unsigned int in lib/utilMatt Kraai1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-16s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki1-11/+11
2009-10-01s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl()Kamen Mazdrashki1-30/+3
2009-10-01s4/drsuapi: ber_read_partial_OID_String() implementationKamen Mazdrashki1-0/+36
2009-10-01s4/drsuapi: Internal implementation for ber_read_OID_StringKamen Mazdrashki1-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
2009-10-01s4/drsuapi: ber_write_partial_OID_String() implementationKamen Mazdrashki1-0/+35
2009-09-17spnego: Support ASN.1 BIT STRING and use it in SPNEGO.Kouhei Sutou1-0/+42
Signed-off-by: Günther Deschner <gd@samba.org>
2009-07-31util/asn1: fix potential memory leak in asn1_write_OID()Stefan Metzmacher1-0/+1
metze
2009-06-20Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke1-0/+10
2009-06-20Move asn1_blob() to lib/util/asn1.cVolker Lendecke1-0/+16
2009-06-10added asn1 functions for handling booleans in a simple contextAndrew Tridgell1-0/+23
2009-06-06Use data_blob_null instead of data_blob(NULL, 0)Volker Lendecke1-1/+1
2008-10-22lib-util: fix c++ compile warning.Günther Deschner1-1/+1
Guenther
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+770
Conflicts: source4/Makefile