[gnutls-help] gnutls_certificate_set_x509_key_file crashes in Windows

Nikos Mavrogiannopoulos nmav at gnutls.org
Fri Sep 19 10:58:48 CEST 2014


On Thu, Sep 18, 2014 at 12:40 AM, Joseph Peruski
<joseph.peruski at escrypt.com> wrote:
> Hello List,
> Hopefully, you can help me with an issue I am having (I'm keeping my fingers
> crossed).
> I've been trying to get my MSVS-based code to work with the latest
> pre-compiled Win32 version of GnuTLS with p11-kit support (v3.2.16) from
> [1]. I've taken the example from [2] and have made only slight modifications
> to it:

Thanks for reporting that. It seems that there was a memory corruption
issue in the transparent pkcs11 file load. That was a good opportunity
to add the pkcs11 functions to the set of tests run under valgrind.

Anyway, for your issue, you may apply the patch in [0] and recompile
gnutls, or switch to the "manual" API, of using
gnutls_privkey_import_url() and use gnutls_certificate_set_key().

[0]. https://gitorious.org/gnutls/gnutls/commit/12296f898e65b0588c7b3cf8d7f40f0fa4f0f7f1

regards,
Nikos



More information about the Gnutls-help mailing list