[gnutls-dev] Some problems with GnuTLS 0.9.95

Nikos Mavroyanopoulos nmav at gnutls.org
Mon Nov 10 23:27:57 CET 2003


On Mon, Nov 10, 2003 at 05:47:51PM +0100, Gergely Nagy wrote:

> Hi!
> While updating a project of mine to take advantage of GnuTLS 0.9, I
> noticed a few glitches. The most annoying one is that the prototype
> for gnutls_handshake_set_rsa_pms_check is included in gnutls/gnutls.h,
> but the function itself was removed from the library. I think the
> header would need an update to reflect this.
> Another problem is that gnutls_x509_crt_get_dn() does not work as
> documented. According to the docs, when I call gnutls_x509_crt_get_dn
> (crt, NULL, &size), it should set size to the length of the
> DN. However, it does not, and returns GNUTLS_E_INVALID_REQUEST (size
> was set to 0 before the call, but if the buffer is NULL, I think that
> gnutls_x509_crt_get_dn should ignore the initial value of size). Using
> gnutls_x509_crt_get_dn (crt, &tmp_buf, &size), where tmp_buf is a
> single char, and size is 1, works as expected. Well, almost. I'd
> expect that this code would get me a DN:
[...]
Thank you. I've just commited a fix in the cvs. I'll try to check 
all those functions soon.

> Cheers,
> -- 
> Gergely Nagy

-- 
Nikos Mavroyanopoulos



More information about the Gnutls-dev mailing list