help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use gnutls_privkey_import_ext


From: Nikos Mavrogiannopoulos
Subject: Re: how to use gnutls_privkey_import_ext
Date: Sun, 10 Jun 2012 13:18:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

On 06/10/2012 12:56 PM, Carolin Latze wrote:


> gnutls_privkey_t key;
> gnutls_privkey_init(&key);
> 
> and assigned a NULL privkey to the credentials of this session: (even if
> I assign the &key here, it does not help)
> 
> gnutls_certificate_set_x509_key_mem(xcred, &ccert, NULL,
> GNUTLS_X509_FMT_PEM);


Unfortunately you cannot call this. If you have a gnutls_privkey_t you
need to use gnutls_certificate_set_key(). That means that you'll have to
import the certificate and convert it to gnutls_pcert_st. A helper
function is indeed needed in that case.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]