Age | Commit message (Collapse) | Author | Files | Lines |
|
When dumping parsed DER/ASN.1 tree, print an asterisk if something
has a value, and a dot if it was parsed, but no value.
|
|
Gets a string as an unsigned integer, removing leading zeros, and
combining strings of indefinite length.
|
|
gtk-doc doesn't work as an included Makefile so continue to
use SUBDIRS with docs/reference/*
Run the tests using TAP. Unfortunately the GTest --tap output
mode doesn't behave well in the face of failures, and doesn't
output a test plan. Use our own tap-driver and tap-compiler
for these reasons.
This also fixes several builddir != srcdir issues and testing hacks
that were sneaking around in the code base.
Move the tests into the same directories as the code that it
is testing.
|
|
|
|
|
|
|
|
* Remove or change code that doesn't get executed in normal
operation.
* Fix a few bugs discovered during the testing.
|
|
* Better detection of the case where TLV length overflows
the size of an int.
|
|
|
|
* When parsing invalid DER files and more than one sub-TLV is
encountered we would do a NULL dereference.
* Catch this condition and test for it.
|
|
|
|
|
|
In particular fix things like
* Indefinite parsing
* Encoding of defaults
* Ability to read values that haven't yet been encoded
* Proper handling of ANY tags
|
|
* Bump glib minimum version to 2.32
|
|
|
|
* Move key calculation routines into gcr-subject-public-key.c
* Move creation of SPK from gcr-fingerprint.c into here
* Implement loading of SPK from PKCS#11 certificates, public keys,
private keys
* Add support for parsing SubjectPublicKeyInfo to parser. Generates
attributes for a CKO_PUBLIC_KEY
* Fix bugs in DER encoding related to this.
* More tweaks on testing infrastructure
|
|
|
|
* Encode DER tag classes correctly for universal, application
and private classes
|
|
|
|
|
|
|
|
* Copy a few definitions for using the asn1Parser generated
definitions files.
https://bugzilla.gnome.org/show_bug.cgi?id=664187
|
|
* This is especially necessary after migrating to EggBytes
since it's reference counted and an easy sourc of memory leaks
* Remove threading from testing framework, as gcr isn't threadsafe
in all parts.
* Fix bugs discovered in memory checking.
* Fix up some of the testing stuff.
|
|
* Copy from glib patch to EggBytes
* This allows us to reliably build up ASN.1 structures from different
sources, and is needed for the certificate request work.
https://bugzilla.gnome.org/show_bug.cgi?id=663291
|
|
* When the unsigned integer had a high bit set, we would store/parse
it incorrectly. We have to force these numbers to be unsigned so
we prefix/strip an extra zero byte on the front.
* Also make accessing raw and usg numbers in DER not have to copy
the value, since these are often sensitive.
|
|
* Also centralize our timegm() implementation for dumb OS's.
* Add tests for openpgp packet parsing
* Produces with-colons format in the gnupg style, slight differences
but not incompatible.
|
|
* In particular when the order of a SET OF is incorrect as is generated
by certain implementations.
* Revert cbecc802e8cf5803aac9fbd3c546b539773220b2 since this fix was
wrong.
* Add egg_asn1x_decode_no_validate() so that callers can validate on
their own and specify validation options.
|
|
* Compare just the value, rather than the entire TLV
* This fixes some corner cases parsing PKCS#12 files
|
|
|
|
|
|
|
|
These are derived from subjectPublicKeyInfo
https://bugzilla.gnome.org/show_bug.cgi?id=646905
|
|
|
|
Mac OSX doesn't have a ulong type
https://bugzilla.gnome.org/show_bug.cgi?id=640362
|
|
|
|
|
|
|
|
|
|
Make choices based on whether they contain any other real
valid elements inside.
|
|
When building up ASN.1 must select which choice by using
the egg_asn1x_set_choice() function.
|
|
Also fix encoding of explicitly tagged choice elements.
|
|
|
|
|
|
Add getter and setter for ENUMERATED ASN.1 values, and DER
encoder.
|
|
To add a value to a SEQUENCE OF or SET OF, added the function
egg_asn1x_append().
|
|
* We used g_date_set_time_val which converted using local time.
* Changed to set GDate fields independently.
|
|
Make encoding of unsigned longs adapt to long size.
|
|
* Required for build when we actually parse ASN.1 files.
|
|
* Benefits are less copies of sensitive data in memory.
* More insightful parsing and API.
|
|
|