2.5.7 gnutls_x509_privkey_generate() returns GNUTLS_E_INVALID_REQUEST

Nikos Mavrogiannopoulos nmav at gnutls.org
Sun Sep 21 09:30:08 CEST 2008

Sam Varshavchik wrote:

> Unfortunately, there appears to be more problems with private key
> functions in 2.5.7. I'm now getting segfaults in
> gnutls_x509_privkey_import(). My debugging results are as follows:
> ==3339== 5,886 (168 direct, 5,718 indirect) bytes in 3 blocks are
> definitely lost in loss record 8 of 9
> ==3339==    at 0x4A05174: calloc (vg_replace_malloc.c:397)
> ==3339==    by 0x3158C0A211: (within /usr/lib64/libtasn1.so.3.0.14)
> ==3339==    by 0x3158C0A3F2: (within /usr/lib64/libtasn1.so.3.0.14)
> ==3339==    by 0x3158C0A7BD: asn1_create_element (in
> /usr/lib64/libtasn1.so.3.0.14)
> ==3339==    by 0x4C829B2: _gnutls_asn1_encode_rsa (privkey.c:1075)
> ==3339==    by 0x4C83E0B: gnutls_x509_privkey_export (privkey.c:739)

Hello Sam,
 I've commited fixes for these issues, so that latest code in git should
not have these issues. All except the last one (quoted). It would be
very helpful to give me some pointers on how to reproduce it.

As far as I understand it should happening when
gnutls_rsa_params_export_raw() is called?

Thank you for all your work!


More information about the Gnutls-devel mailing list