[gnutls-dev] Re: Problem with subject names. (Ändrat av Pelle Johansson)

Simon Josefsson jas at extundo.com
Mon Nov 1 21:26:29 CET 2004


Pelle Johansson <morth at morth.org> writes:

> Seems I replied privately only...
>
> Nikos Mavrogiannopoulos wrote:
>
>>On Friday 29 October 2004 00:30, Pelle Johansson wrote:
>>
>>  
>>
>>>I'm having some problem with the subject name extraction functions. I
>>>want to extract the common name from a certificate using
>>>gnutls_x509_crt_get_dn_by_oid(), but I'm always getting a
>>>GNUTLS_E_SHORT_MEMORY_BUFFER. This is regardless if I call with a NULL
>>>buf argument or with buf_sizeof set to 10000.
>>>    
>>>
>>Does this happen with the latest gnutls? (that is 1.0.22)
>>
> Yes, same symptom (tried on .21 and .22).
>
> I'm suspecting perhaps an endian problem? I'm on PPC and they're far
> from uncommon...
> I guess I could make a library I can descend into to see if I find the
> problem.

Single-stepping through the function to see what trigger the error
would indeed be useful.

Thanks in advance,
Simon




More information about the Gnutls-dev mailing list