Nikos Mavrogiannopoulos [Thu, 22 Nov 2012 00:41:31 +0000 (01:41 +0100)]
Added more ASN.1 string types and several simplifications.
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.
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>
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>
Simon Josefsson [Tue, 6 Nov 2012 14:49:59 +0000 (15:49 +0100)]
Ignore more.
Simon Josefsson [Tue, 6 Nov 2012 14:49:29 +0000 (15:49 +0100)]
Don't overload the 'time' global name.
Simon Josefsson [Tue, 6 Nov 2012 14:49:02 +0000 (15:49 +0100)]
Generated.
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>
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>
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.
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:46:10 +0000 (14:46 +0100)]
break compatibility with previous releases.
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:31:12 +0000 (14:31 +0100)]
corrected types
Nikos Mavrogiannopoulos [Sun, 28 Oct 2012 13:27:11 +0000 (14:27 +0100)]
bumped version
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
Nikos Mavrogiannopoulos [Tue, 9 Oct 2012 17:49:13 +0000 (19:49 +0200)]
Silence tests.
Nikos Mavrogiannopoulos [Tue, 9 Oct 2012 17:30:05 +0000 (19:30 +0200)]
Allow empty IDENTIFIERS in ASN1 definitions. Suggested by Ivan Shmakov.
Nikos Mavrogiannopoulos [Sat, 6 Oct 2012 12:29:37 +0000 (14:29 +0200)]
asn_ -> asn1_
Nikos Mavrogiannopoulos [Sat, 6 Oct 2012 12:05:43 +0000 (14:05 +0200)]
Set the error description to null initialy.
Nikos Mavrogiannopoulos [Thu, 4 Oct 2012 17:40:53 +0000 (19:40 +0200)]
updated
Nikos Mavrogiannopoulos [Tue, 2 Oct 2012 18:20:49 +0000 (20:20 +0200)]
removed unneeded variables and files.
Nikos Mavrogiannopoulos [Tue, 2 Oct 2012 18:17:46 +0000 (20:17 +0200)]
Updated gllib and added hash-pjw-bare.
Nikos Mavrogiannopoulos [Tue, 2 Oct 2012 18:11:01 +0000 (20:11 +0200)]
Use hash-pjw-bare instead of asn1_bhash().
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:18:09 +0000 (22:18 +0200)]
eliminated use of old types
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:13:55 +0000 (22:13 +0200)]
documented update
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:09:26 +0000 (22:09 +0200)]
ASN1_TYPE definition corrected
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:07:34 +0000 (22:07 +0200)]
updated to new types
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:03:03 +0000 (22:03 +0200)]
node_data_struct -> asn_data_node_st
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 20:00:02 +0000 (22:00 +0200)]
ASN1_ARRAY_TYPE -> asn_static_node_t
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 19:55:54 +0000 (21:55 +0200)]
Renamed types.
node_asn -> asn_node_st
ASN1_TYPE -> node_asn_t
ASN1_TYPE_EMPTY -> NULL
Nikos Mavrogiannopoulos [Mon, 1 Oct 2012 19:48:04 +0000 (21:48 +0200)]
asn1_retCode -> int
Simon Josefsson [Wed, 26 Sep 2012 08:48:25 +0000 (10:48 +0200)]
Add.
Nikos Mavrogiannopoulos [Sun, 23 Sep 2012 14:10:57 +0000 (16:10 +0200)]
small optimizations to avoid recalculation of hashes when copying nodes.
Nikos Mavrogiannopoulos [Sun, 23 Sep 2012 10:55:40 +0000 (12:55 +0200)]
improve performance by 50% by using hashes to compare strings.
Nikos Mavrogiannopoulos [Fri, 21 Sep 2012 22:28:57 +0000 (00:28 +0200)]
increased benchmark time
Nikos Mavrogiannopoulos [Thu, 20 Sep 2012 16:39:21 +0000 (18:39 +0200)]
other small fix
Nikos Mavrogiannopoulos [Thu, 20 Sep 2012 16:34:55 +0000 (18:34 +0200)]
Some small optimizations and better checking of tree accesses.
Nikos Mavrogiannopoulos [Mon, 17 Sep 2012 21:07:01 +0000 (23:07 +0200)]
documented updates
Nikos Mavrogiannopoulos [Fri, 14 Sep 2012 16:08:19 +0000 (18:08 +0200)]
Corrected the test.
Nikos Mavrogiannopoulos [Fri, 14 Sep 2012 16:08:10 +0000 (18:08 +0200)]
name has size of ASN1_MAX_NAME_SIZE+1 to allow for a terminating null.
Nikos Mavrogiannopoulos [Fri, 14 Sep 2012 15:58:53 +0000 (17:58 +0200)]
removed unneeded casts
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 21:30:50 +0000 (23:30 +0200)]
Revert "small_value_size changed to 8. No visible difference in performance"
This reverts commit
b86e75de8bc3a35620f069b7b00d680284d86eb5.
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 20:26:14 +0000 (22:26 +0200)]
Added symbol into old API
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 19:38:49 +0000 (21:38 +0200)]
_asn1_add_node_only -> _asn1_add_single_node
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 19:34:46 +0000 (21:34 +0200)]
_asn1_add_node -> _asn1_add_static_node
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 19:30:33 +0000 (21:30 +0200)]
Eliminated _asn1_malloc, _asn1_free and _asn_calloc.
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 19:11:19 +0000 (21:11 +0200)]
reduced maximum name size
Nikos Mavrogiannopoulos [Thu, 13 Sep 2012 19:10:35 +0000 (21:10 +0200)]
no need to reserve.
Simon Josefsson [Wed, 12 Sep 2012 21:21:33 +0000 (23:21 +0200)]
Drop long-time deprecated functions.
Simon Josefsson [Wed, 12 Sep 2012 21:20:33 +0000 (23:20 +0200)]
Bump years.
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 21:15:02 +0000 (23:15 +0200)]
Node type field is now included in ASN1_DATA_NODE.
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 20:32:20 +0000 (22:32 +0200)]
Added asn1_read_node_value()
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 20:19:43 +0000 (22:19 +0200)]
small_value_size changed to 8. No visible difference in performance
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 20:19:08 +0000 (22:19 +0200)]
name is now a statically allocated string and other optimizations.
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 19:59:14 +0000 (21:59 +0200)]
internal structure removed
Nikos Mavrogiannopoulos [Wed, 12 Sep 2012 19:58:41 +0000 (21:58 +0200)]
bumped version
Nikos Mavrogiannopoulos [Sat, 8 Sep 2012 23:25:58 +0000 (01:25 +0200)]
eliminates few leaks
Nikos Mavrogiannopoulos [Sat, 8 Sep 2012 19:03:45 +0000 (21:03 +0200)]
Added tool to benchmark X.509 structure decoding.
Nikos Mavrogiannopoulos [Sat, 8 Sep 2012 18:45:02 +0000 (20:45 +0200)]
Updated to new gnulib and added gettime.
Tim Ruehsen [Fri, 31 Aug 2012 13:27:59 +0000 (15:27 +0200)]
cleanup _asn1_copy_structure3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Simon Josefsson [Sat, 18 Aug 2012 08:06:39 +0000 (10:06 +0200)]
Fix compilation warnings.
Simon Josefsson [Thu, 31 May 2012 16:50:43 +0000 (18:50 +0200)]
Bump versions.
Simon Josefsson [Thu, 31 May 2012 16:44:27 +0000 (18:44 +0200)]
Update for 2.12.
Simon Josefsson [Thu, 31 May 2012 15:35:00 +0000 (17:35 +0200)]
Fix release targets.
Simon Josefsson [Thu, 31 May 2012 15:10:57 +0000 (17:10 +0200)]
Version 2.13.
Simon Josefsson [Thu, 31 May 2012 14:59:41 +0000 (16:59 +0200)]
Bump versions.
Simon Josefsson [Thu, 31 May 2012 14:56:58 +0000 (16:56 +0200)]
Use devhelp2 format.
Simon Josefsson [Thu, 31 May 2012 14:56:29 +0000 (16:56 +0200)]
Don't store ChangeLog in git, it is auto-generated.
Simon Josefsson [Thu, 31 May 2012 14:37:56 +0000 (16:37 +0200)]
Fix syntax-check warnings.
Simon Josefsson [Thu, 31 May 2012 14:36:44 +0000 (16:36 +0200)]
Update gnulib files.
Simon Josefsson [Thu, 31 May 2012 14:34:28 +0000 (16:34 +0200)]
Silence compiler warnings about unsigned vs signed comparisons.
Nikos Mavrogiannopoulos [Thu, 19 Apr 2012 19:34:49 +0000 (21:34 +0200)]
documented fix.
Nikos Mavrogiannopoulos [Fri, 6 Apr 2012 17:31:43 +0000 (19:31 +0200)]
long is always signed.
Nikos Mavrogiannopoulos [Sun, 1 Apr 2012 17:51:53 +0000 (19:51 +0200)]
Simplified the overflow tests by using unsigned int numbers, suggested by Niels Moeller.
Nikos Mavrogiannopoulos [Sat, 31 Mar 2012 20:08:36 +0000 (22:08 +0200)]
Added additional test case
Nikos Mavrogiannopoulos [Sat, 31 Mar 2012 18:16:48 +0000 (20:16 +0200)]
Added overflow detection that does not depend on specific compiler, and asn1_get_der_length() verifies the length of the input data in small numbers as well.
Simon Josefsson [Mon, 19 Mar 2012 09:46:50 +0000 (10:46 +0100)]
Generated.
Simon Josefsson [Mon, 19 Mar 2012 09:39:00 +0000 (10:39 +0100)]
Version 2.12.
Simon Josefsson [Mon, 19 Mar 2012 09:14:19 +0000 (10:14 +0100)]
Indent code.
Simon Josefsson [Mon, 19 Mar 2012 09:12:41 +0000 (10:12 +0100)]
Update gnulib files.
Simon Josefsson [Wed, 14 Mar 2012 08:24:35 +0000 (09:24 +0100)]
Give credit.
Simon Josefsson [Wed, 14 Mar 2012 08:24:02 +0000 (09:24 +0100)]
Mention severity.
Simon Josefsson [Tue, 13 Mar 2012 23:20:16 +0000 (00:20 +0100)]
Simplify overflow check.
Simon Josefsson [Tue, 13 Mar 2012 22:47:28 +0000 (23:47 +0100)]
Add self-check.
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 21:37:16 +0000 (22:37 +0100)]
for some reason the tot < 0 test wasn't successful on negative results. Replaced with tot < ret.
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 20:18:20 +0000 (21:18 +0100)]
the change was reverted
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 20:15:21 +0000 (21:15 +0100)]
reverted to the old ABI.
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 20:15:00 +0000 (21:15 +0100)]
reverted to the old ABI.
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 18:40:25 +0000 (19:40 +0100)]
documented fix
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 18:33:30 +0000 (19:33 +0100)]
check for overflows
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 18:30:29 +0000 (19:30 +0100)]
int is signed.
Nikos Mavrogiannopoulos [Tue, 13 Mar 2012 18:15:25 +0000 (19:15 +0100)]
bumped shared lib version
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 22:11:45 +0000 (23:11 +0100)]
Added asn1_get_length_der_checked() to put some of the common checks in a single function.
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 21:59:03 +0000 (22:59 +0100)]
cleanups in asn1_der_decoding_element().
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 21:50:12 +0000 (22:50 +0100)]
API is based on integers instead of long to prevent errors in systems where sizeof(int)!=sizeof(long)
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 21:47:38 +0000 (22:47 +0100)]
asn1_get_length_der() may handle up to signed long values.
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 20:18:12 +0000 (21:18 +0100)]
updated to bison 2.5
Nikos Mavrogiannopoulos [Sun, 4 Mar 2012 20:17:54 +0000 (21:17 +0100)]
better cleanup in decoding.
Simon Josefsson [Fri, 9 Mar 2012 11:31:59 +0000 (12:31 +0100)]
Add.
Simon Josefsson [Wed, 7 Mar 2012 09:26:44 +0000 (10:26 +0100)]
Update gnulib files.
Simon Josefsson [Mon, 23 Jan 2012 20:55:17 +0000 (21:55 +0100)]
Bump copyright years.