[gnutls-dev] [PATCH 1/1] crt_get_issuer_dn and friends request the wrong sized buffer

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat May 28 21:10:03 CEST 2005

On Saturday 28 May 2005 20:04, Adam Langley wrote:
> With GnuTLS 1.2.[34] calling gnutls_x509_crt_get_issuer_dn with a NULL
> parameter will cause the function to request (by filling out the int
> *size argument) a buffer which is one byte too small. Calling the
> function again with a buffer of the requested size will fail.
> When a larger buffer is provided, the returned size is one byte too
> large as it includes the NUL terminator which seems to be counter to
> the convention in GnuTLS.
Indeed, it was the other way round. I corrected it in the cvs, thank you.

Nikos Mavrogiannopoulos

More information about the Gnutls-devel mailing list