platform/upstream/libtasn1.git
10 years agoFix syntax-check nits.
Simon Josefsson [Tue, 22 Apr 2014 19:16:17 +0000 (21:16 +0200)]
Fix syntax-check nits.

10 years agoUpdate copyright years.
Simon Josefsson [Tue, 22 Apr 2014 19:02:23 +0000 (21:02 +0200)]
Update copyright years.

10 years agoUpdate gnulib files.
Simon Josefsson [Tue, 22 Apr 2014 18:50:00 +0000 (20:50 +0200)]
Update gnulib files.

10 years agodoc update
Nikos Mavrogiannopoulos [Thu, 17 Apr 2014 13:43:30 +0000 (15:43 +0200)]
doc update

10 years agosimplified asn1_find_structure_from_oid() and asn1_expand_any_defined_by().
Nikos Mavrogiannopoulos [Thu, 17 Apr 2014 13:36:11 +0000 (15:36 +0200)]
simplified asn1_find_structure_from_oid() and asn1_expand_any_defined_by().

10 years agodoc update
Nikos Mavrogiannopoulos [Tue, 15 Apr 2014 12:30:45 +0000 (14:30 +0200)]
doc update

10 years agoDo not try to write over null values
Nikos Mavrogiannopoulos [Tue, 15 Apr 2014 11:49:40 +0000 (13:49 +0200)]
Do not try to write over null values

10 years agofixed several coverity reported bugs.
Nikos Mavrogiannopoulos [Tue, 15 Apr 2014 10:12:06 +0000 (12:12 +0200)]
fixed several coverity reported bugs.

10 years agodoc update
Nikos Mavrogiannopoulos [Fri, 28 Mar 2014 13:49:58 +0000 (14:49 +0100)]
doc update

10 years agoasn1_write_value: fix segfault when deleting an unauthorized element
Jean-Louis Thekekara [Tue, 25 Mar 2014 16:15:58 +0000 (17:15 +0100)]
asn1_write_value: fix segfault when deleting an unauthorized element

Segfaults can occur, since value is dereferenced later, ex:

 352       if ((isdigit (value[0])) || (value[0] == '-')

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agocleaned up code
Nikos Mavrogiannopoulos [Fri, 28 Mar 2014 13:45:33 +0000 (14:45 +0100)]
cleaned up code

10 years agoasn1_write_value: allow SET_OF elements deletion
Jean-Louis Thekekara [Tue, 25 Mar 2014 12:41:37 +0000 (13:41 +0100)]
asn1_write_value: allow SET_OF elements deletion

SET_OF elements could just be deleted as SEQUENCE_OF ones.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoextract_tag_der_recursive: fix compilation errors
Jean-Louis Thekekara [Tue, 25 Mar 2014 13:16:39 +0000 (14:16 +0100)]
extract_tag_der_recursive: fix compilation errors

Fix the following errors introduced by extract_tag_der_recursive usage:

decoding.c: In function 'extract_tag_der_recursive':
decoding.c:560:5: error: 'ris' may be used uninitialized in this function [-Werror=maybe-uninitialized]

decoding.c: In function 'asn1_der_decoding_startEnd':
decoding.c:2192:40: error: unused variable 'p3' [-Werror=unused-variable]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agocorrected delete_unneeded_choice_fields().
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 14:27:21 +0000 (15:27 +0100)]
corrected delete_unneeded_choice_fields().

10 years agofree all allocated memory
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 14:19:19 +0000 (15:19 +0100)]
free all allocated memory

10 years agodoc update
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 14:09:56 +0000 (15:09 +0100)]
doc update

10 years agoAdded self-check for recursive choices.
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 14:09:11 +0000 (15:09 +0100)]
Added self-check for recursive choices.

10 years agoHandle recursive CHOICEs.
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 14:02:15 +0000 (15:02 +0100)]
Handle recursive CHOICEs.

10 years agoUse special function for common usage of _asn1_extract_tag_der().
Nikos Mavrogiannopoulos [Fri, 14 Mar 2014 13:07:42 +0000 (14:07 +0100)]
Use special function for common usage of _asn1_extract_tag_der().

10 years agodistribute stamp_docs to avoid regenerating docs everywhere.
Nikos Mavrogiannopoulos [Wed, 27 Nov 2013 13:28:03 +0000 (14:28 +0100)]
distribute stamp_docs to avoid regenerating docs everywhere.

10 years agocorrected so-number
Nikos Mavrogiannopoulos [Mon, 25 Nov 2013 19:25:07 +0000 (20:25 +0100)]
corrected so-number

10 years agodoc update
Nikos Mavrogiannopoulos [Mon, 25 Nov 2013 19:18:05 +0000 (20:18 +0100)]
doc update

10 years agoinclude asn1_delete_structure2() to tests
Nikos Mavrogiannopoulos [Mon, 25 Nov 2013 19:12:38 +0000 (20:12 +0100)]
include asn1_delete_structure2() to tests

10 years agoexported function
Nikos Mavrogiannopoulos [Mon, 25 Nov 2013 19:12:19 +0000 (20:12 +0100)]
exported function

10 years agoThe parser accepts negative numbers in INTEGER ranges. Use snprintf() instead of...
Nikos Mavrogiannopoulos [Thu, 21 Nov 2013 08:02:17 +0000 (09:02 +0100)]
The parser accepts negative numbers in INTEGER ranges. Use snprintf() instead of strcpy() in parser.

10 years agoAdded asn1_delete_structure2().
Nikos Mavrogiannopoulos [Wed, 13 Nov 2013 12:55:14 +0000 (13:55 +0100)]
Added asn1_delete_structure2().

The new function accepts additional flags to be used during deinitialization.
For the moment the only available flag is ASN1_DELETE_FLAG_ZEROIZE which zeroizes
all values in the structure prior to deinitialization.

10 years agoupdated documentation generation rules.
Nikos Mavrogiannopoulos [Wed, 13 Nov 2013 12:45:41 +0000 (13:45 +0100)]
updated documentation generation rules.

10 years agoupdated gdoc from gnutls
Nikos Mavrogiannopoulos [Wed, 13 Nov 2013 12:34:51 +0000 (13:34 +0100)]
updated gdoc from gnutls

10 years agoupdated ASN1.c
Nikos Mavrogiannopoulos [Wed, 13 Nov 2013 12:34:29 +0000 (13:34 +0100)]
updated ASN1.c

10 years agodoc fixes
Nikos Mavrogiannopoulos [Wed, 13 Nov 2013 12:34:22 +0000 (13:34 +0100)]
doc fixes

11 years agoBump version.
Simon Josefsson [Sun, 24 Mar 2013 10:52:44 +0000 (11:52 +0100)]
Bump version.

11 years agoFix syntax-check warnings.
Simon Josefsson [Sun, 24 Mar 2013 10:00:19 +0000 (11:00 +0100)]
Fix syntax-check warnings.

11 years agoBump versions.
Simon Josefsson [Sun, 24 Mar 2013 09:59:52 +0000 (10:59 +0100)]
Bump versions.

11 years agoFix syntax-check warnings.
Simon Josefsson [Sun, 24 Mar 2013 09:54:53 +0000 (10:54 +0100)]
Fix syntax-check warnings.

11 years agoGenerated.
Simon Josefsson [Sun, 24 Mar 2013 09:41:52 +0000 (10:41 +0100)]
Generated.

11 years agoBump version.
Simon Josefsson [Sun, 24 Mar 2013 09:41:44 +0000 (10:41 +0100)]
Bump version.

11 years agoUpdate copyright years.
Simon Josefsson [Sun, 24 Mar 2013 09:33:24 +0000 (10:33 +0100)]
Update copyright years.

11 years agoVersion 3.3.
Simon Josefsson [Sun, 24 Mar 2013 09:31:25 +0000 (10:31 +0100)]
Version 3.3.

11 years agoIndent code.
Simon Josefsson [Sun, 24 Mar 2013 09:28:25 +0000 (10:28 +0100)]
Indent code.

11 years agoSilence warnings.
Simon Josefsson [Sun, 24 Mar 2013 09:27:46 +0000 (10:27 +0100)]
Silence warnings.

11 years agoUpdate gnulib files.
Simon Josefsson [Sun, 24 Mar 2013 09:17:07 +0000 (10:17 +0100)]
Update gnulib files.

11 years agoupdated
Nikos Mavrogiannopoulos [Mon, 4 Mar 2013 05:21:51 +0000 (06:21 +0100)]
updated

11 years agoFix check for Android x86
Andoni Morales Alastruey [Tue, 15 Jan 2013 12:00:45 +0000 (13:00 +0100)]
Fix check for Android x86

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoFix includes for Bionic X86
Andoni Morales Alastruey [Tue, 15 Jan 2013 11:19:49 +0000 (12:19 +0100)]
Fix includes for Bionic X86

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoFix include for Bionic, where SIZE_MAX is in limits.h
Andoni Morales Alastruey [Tue, 15 Jan 2013 11:19:39 +0000 (12:19 +0100)]
Fix include for Bionic, where SIZE_MAX is in limits.h

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoMore precise overflow checks using gnulib's intprops module.
Nikos Mavrogiannopoulos [Tue, 1 Jan 2013 11:24:38 +0000 (12:24 +0100)]
More precise overflow checks using gnulib's intprops module.

11 years agoAdded intprops
Nikos Mavrogiannopoulos [Tue, 1 Jan 2013 10:56:27 +0000 (11:56 +0100)]
Added intprops

11 years agoFix GTK-DOC warnings.
Simon Josefsson [Mon, 10 Dec 2012 13:38:25 +0000 (14:38 +0100)]
Fix GTK-DOC warnings.

11 years agoreleased
Nikos Mavrogiannopoulos [Fri, 30 Nov 2012 10:15:15 +0000 (11:15 +0100)]
released

11 years agobumped version
Nikos Mavrogiannopoulos [Thu, 29 Nov 2012 18:00:24 +0000 (19:00 +0100)]
bumped version

11 years agodocumented update
Nikos Mavrogiannopoulos [Sun, 25 Nov 2012 13:22:57 +0000 (14:22 +0100)]
documented update

11 years agocorrected possible buffer overflow in parser errors.
Nikos Mavrogiannopoulos [Sun, 25 Nov 2012 13:16:24 +0000 (14:16 +0100)]
corrected possible buffer overflow in parser errors.

11 years agoupdated
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 17:40:48 +0000 (18:40 +0100)]
updated

11 years agoreleased 3.1
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 17:27:34 +0000 (18:27 +0100)]
released 3.1

11 years agorevert to use strlen when writing time values.
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 17:22:32 +0000 (18:22 +0100)]
revert to use strlen when writing time values.

11 years agoDocumented the new functions
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 17:13:29 +0000 (18:13 +0100)]
Documented the new functions

11 years agobumped version
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 17:07:23 +0000 (18:07 +0100)]
bumped version

11 years agocorrected compatibility mode with old structures.
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 16:57:51 +0000 (17:57 +0100)]
corrected compatibility mode with old structures.

11 years agosimplified
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 15:45:23 +0000 (16:45 +0100)]
simplified

11 years agosimplified
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 15:23:08 +0000 (16:23 +0100)]
simplified

11 years agocorrected typo
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 12:46:21 +0000 (13:46 +0100)]
corrected typo

11 years agobetter error reporting
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 09:41:48 +0000 (10:41 +0100)]
better error reporting

11 years agosome simplifications in time handling
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 09:41:33 +0000 (10:41 +0100)]
some simplifications in time handling

11 years agoIntroduced ASN1_ETYPE_UTC_TIME and ASN1_ETYPE_GENERALIZED_TIME
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 08:41:50 +0000 (09:41 +0100)]
Introduced ASN1_ETYPE_UTC_TIME and ASN1_ETYPE_GENERALIZED_TIME

11 years agoupdates in ETYPE_OK
Nikos Mavrogiannopoulos [Sat, 24 Nov 2012 08:07:41 +0000 (09:07 +0100)]
updates in ETYPE_OK

11 years agoAdded asn1_read_value_type().
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 20:36:51 +0000 (21:36 +0100)]
Added asn1_read_value_type().

11 years agosimplified and renamed asn1_encode_string_der() and asn1_decode_string_der()
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 20:00:50 +0000 (21:00 +0100)]
simplified and renamed asn1_encode_string_der() and asn1_decode_string_der()

11 years agorenamed types
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 19:29:02 +0000 (20:29 +0100)]
renamed types

11 years agoAdded asn1_decode_string_der() and asn1_encode_string_der().
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 19:24:35 +0000 (20:24 +0100)]
Added asn1_decode_string_der() and asn1_encode_string_der().

11 years agozeroize last_error_token on unknown errors.
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 08:47:24 +0000 (09:47 +0100)]
zeroize last_error_token on unknown errors.

11 years agoupdated generated structures
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 08:44:05 +0000 (09:44 +0100)]
updated generated structures

11 years agobetter error printing
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 08:43:35 +0000 (09:43 +0100)]
better error printing

11 years agoinit strings
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 08:39:49 +0000 (09:39 +0100)]
init strings

11 years agostore duplicate (with built-in values) in structure to be compatible with old version.
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 08:34:50 +0000 (09:34 +0100)]
store duplicate (with built-in values) in structure to be compatible with old version.

11 years agodocumented new types
Nikos Mavrogiannopoulos [Fri, 23 Nov 2012 00:09:32 +0000 (01:09 +0100)]
documented new types

11 years agouse const for the data
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:44:16 +0000 (19:44 +0100)]
use const for the data

11 years agoupdated
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:43:10 +0000 (19:43 +0100)]
updated

11 years agobetter name
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:42:47 +0000 (19:42 +0100)]
better name

11 years agosmall simplifications
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:38:38 +0000 (19:38 +0100)]
small simplifications

11 years agodocumented updates
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:13:30 +0000 (19:13 +0100)]
documented updates

11 years agoindented C code in ASN1.y, and added more verbose error reporting.
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 18:09:56 +0000 (19:09 +0100)]
indented C code in ASN1.y, and added more verbose error reporting.

11 years agoidented code
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 17:23:34 +0000 (18:23 +0100)]
idented code

11 years agoAdded more ASN.1 string types and several simplifications.
Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 00:41:31 +0000 (01:41 +0100)]
Added more ASN.1 string types and several simplifications.

11 years agoCheck for errors reading the assignment file in asn1Coding.
Nikos Mavrogiannopoulos [Fri, 9 Nov 2012 23:18:37 +0000 (00:18 +0100)]
Check for errors reading the assignment file in asn1Coding.

src/asn1Coding.c: Check the value returned by readAssignment ()
to be either ASSIGNMENT_SUCCESS or ASSIGNMENT_EOF.
Patch by Ivan Shmakov.

11 years agouse stderr for status messages in asn1{Coding, Decoding, Parser}
Ivan Shmakov [Tue, 6 Nov 2012 16:16:03 +0000 (23:16 +0700)]
use stderr for status messages in asn1{Coding, Decoding, Parser}

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoTypographical and wording fixes to doc/libtasn1.texi
Ivan Shmakov [Tue, 6 Nov 2012 05:47:48 +0000 (12:47 +0700)]
Typographical and wording fixes to doc/libtasn1.texi

doc/libtasn1.texi: A bunch of typographical and wording fixes
and improvements.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
11 years agoIgnore more.
Simon Josefsson [Tue, 6 Nov 2012 14:49:59 +0000 (15:49 +0100)]
Ignore more.

11 years agoDon't overload the 'time' global name.
Simon Josefsson [Tue, 6 Nov 2012 14:49:29 +0000 (15:49 +0100)]
Don't overload the 'time' global name.

11 years agoGenerated.
Simon Josefsson [Tue, 6 Nov 2012 14:49:02 +0000 (15:49 +0100)]
Generated.

11 years agoFix out of tree build
Thierry Reding [Thu, 1 Nov 2012 08:13:54 +0000 (09:13 +0100)]
Fix out of tree build

This fixes a few occurrences where files are incorrectly referenced from
the build directory instead of the source directory, therefore causing
breakage when building out of tree.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoFix bootstrap with automake 1.12
Thierry Reding [Thu, 1 Nov 2012 08:13:53 +0000 (09:13 +0100)]
Fix bootstrap with automake 1.12

automake 1.12 and later require explicit checking for the archiver using
the AM_PROG_AR command when building libraries using libtool.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
11 years agoCorrected type asn1_static_node_t -> asn1_static_node.
Nikos Mavrogiannopoulos [Thu, 1 Nov 2012 14:21:49 +0000 (15:21 +0100)]
Corrected type asn1_static_node_t -> asn1_static_node.

The old type was left for compatibility. Reported by Andreas Metzler.

11 years agobreak compatibility with previous releases.
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:46:10 +0000 (14:46 +0100)]
break compatibility with previous releases.

11 years agocorrected types
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:31:12 +0000 (14:31 +0100)]
corrected types

11 years agobumped version
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:27:11 +0000 (14:27 +0100)]
bumped version

11 years agoRenamed structures.
Nikos Mavrogiannopoulos [Thu, 11 Oct 2012 06:53:50 +0000 (08:53 +0200)]
Renamed structures.

Avoid using the reserved by POSIX _t. Suggested by Ivan Shmakov.
asn1_static_node_t -> asn1_static_node
asn1_node_t -> asn1_node

11 years agoSilence tests.
Nikos Mavrogiannopoulos [Tue, 9 Oct 2012 17:49:13 +0000 (19:49 +0200)]
Silence tests.

11 years agoAllow empty IDENTIFIERS in ASN1 definitions. Suggested by Ivan Shmakov.
Nikos Mavrogiannopoulos [Tue, 9 Oct 2012 17:30:05 +0000 (19:30 +0200)]
Allow empty IDENTIFIERS in ASN1 definitions. Suggested by Ivan Shmakov.

11 years agoasn_ -> asn1_
Nikos Mavrogiannopoulos [Sat, 6 Oct 2012 12:29:37 +0000 (14:29 +0200)]
asn_ -> asn1_

11 years agoSet the error description to null initialy.
Nikos Mavrogiannopoulos [Sat, 6 Oct 2012 12:05:43 +0000 (14:05 +0200)]
Set the error description to null initialy.