[gnutls-devel] Various fixes for hex DN attributes

Stef Walter stefw at gnome.org
Sat Apr 27 15:44:49 CEST 2013


The encoding of unrecognized (or non-string) DN attributes via functions
like gnutls_x509_crt_get_dn() doesn't work properly. The function
returns GNUTLS_E_ASN1_DER_ERROR. Attached are a number of patches and
some test code to demonstrate the problem and fix related things.

Cheers,

Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-try-to-include-null-terminator-in-DN-string.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: </pipermail/attachments/20130427/75373da6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-reencode-strings-already-in-RFC-5246-form.patch
Type: text/x-patch
Size: 4716 bytes
Desc: not available
URL: </pipermail/attachments/20130427/75373da6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-the-standard-description-OID-to-those-recognized.patch
Type: text/x-patch
Size: 919 bytes
Desc: not available
URL: </pipermail/attachments/20130427/75373da6/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls-dn-unprintable.c
Type: text/x-csrc
Size: 3620 bytes
Desc: not available
URL: </pipermail/attachments/20130427/75373da6/attachment.c>


More information about the Gnutls-devel mailing list