[PATCH] Add gnutls_x509_dn_export.
nmav at gnutls.org
Sun Feb 24 09:49:53 CET 2008
Joe Orton wrote:
> On Thu, Feb 21, 2008 at 11:39:17AM +0000, Joe Orton wrote:
>> This adds another DN function, to export a DN object back to DER. (I
>> only really need a DER export; the value of exporting a DN to PEM format
>> is certainly questionable, but this is allowed for consistency with the
>> other _foo_export functions)
> Hmmm, that didn't actually work, and I don't really understand why. Can
> anyone help? This is rather beyond my understanding of ASN.1/libtasn1!
> The asn1_der_coding(asn1_data, "") call was failing with the error
> ASN1_ELEMENT_NOT_FOUND in _gnutls_x509_export_int. Is that call not
> supposed to provide the DER coding for the entire node?
I suppose that this has to do with the fact that the type of the element
is CHOICE. Some quirk of the encoder probably.
More information about the Gnutls-devel