[gnutls-dev] unencrypted PKCS#12

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Oct 20 00:06:13 CEST 2004


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



More information about the Gnutls-dev mailing list