[gnutls-devel] gnutls_x509_dn_get_rdn_ava and sequences

Kurt Roeckx kurt at roeckx.be
Fri Jan 24 09:18:32 CET 2014


On Fri, Jan 24, 2014 at 07:39:32AM +0100, Nikos Mavrogiannopoulos wrote:
> 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.

So are there some functions I can use that to go over that
sequence, or do I need to write my own parser?


Kurt




More information about the Gnutls-devel mailing list