[gnutls-devel] gnutls_x509_dn_get_rdn_ava and sequences

Nikos Mavrogiannopoulos nmav at gnutls.org
Fri Jan 24 07:39:32 CET 2014


On 01/24/2014 12:14 AM, Kurt Roeckx wrote:

> I understand that the Postal Address is a sequence since it's
> supposed to be a sequence of DirectoryString.
> 
> But I'm little confused why gnutls is showing me the data like that.
> I was expecting to just get a type 12 (UTF8String) from the
> gnutls_x509_dn_get_rdn_ava() since it says it's supposed to model
> the sequence of sequences.

It models the sequence of sequences in the DN itself, not any possible
sequence within the individual fields. The postalAddress field as you
notice is a sequence as well. That's why you see that difference and
that's the reason it is not being decoded by default.

regards,
Nikos




More information about the Gnutls-devel mailing list