help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in CRQ code, or possible user error?


From: Nikos Mavrogiannopoulos
Subject: Re: Possible bug in CRQ code, or possible user error?
Date: Wed, 05 Dec 2012 00:23:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10

On 12/05/2012 12:09 AM, Richard Moore wrote:

> Hi,
> 
> I've been trying to access the name fields of certificate requests
> using gnutls, and I'm not getting any joy, I've included the code
> below. Is this something I'm doing wrong, or is there a bug here? I
> always get -56 (The requested data were not available). I've looked
> over the test cases for this case, and accessing these fields doesn't
> seem to be covered. Any hints?


Hello,
 Do you mean the DistinguishedName fields? Did you try the:
gnutls_x509_crq_get_dn_by_oid() and gnutls_x509_crq_get_dn()?

>         d->errno = gnutls_x509_crq_get_attribute_data(d->crq, index,
>         d->errno = gnutls_x509_crq_get_attribute_by_oid(d->crq,

The functions that you use in your example above are used to set
additional attributes to the certificate request (that have nothing to
do with names -e.g. the challenge password is one of those).

regards,
Nikos




reply via email to

[Prev in Thread] Current Thread [Next in Thread]