gnutls-devel
[Top][All Lists]
Advanced

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

Re: [gnutls-dev] unencrypted PKCS#12


From: Nikos Mavrogiannopoulos
Subject: Re: [gnutls-dev] unencrypted PKCS#12
Date: Wed, 20 Oct 2004 00:06:13 +0200
User-agent: KMail/1.7

On Tuesday 19 October 2004 23:15, Aleix Conchillo Flaque wrote:

> >> - gnutls_pkcs12_bag_decrypt(bag, "") works, but if I pass a NULL I get
> >>   a segmentation fault.
> > I'll check it soon (I'm pretty stressed now with other things).
> > But anyway why do you want to decrypt a bag that is not encrypted?
> Because I don't know if it is encrypted or not. For example, if I
> don't use this function with empty password I get a
> GNUTLS_BAG_ENCRYPTED type with the certificate bag with an unencrypted
> PKCS#12.
Do you use gnutls_pkcs12_bag_get_type()? In that function you must also 
specify the index of the bag element to check. Certtool makes use of this 
function and seems to work.

> regards,
> aleix

-- 
Nikos Mavrogiannopoulos



reply via email to

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