Re: Problem calling PKCS12_gen_mac() twice

2002-09-11 Thread Stefan Richter
I've the same problem if I try to get the private key using the source of pkread.c. If I call it twice in a row it hangs at PKCS12_parse(p12, password, &pkey, &cert, &ca). The resulting error output: Error parsing PKCS#12 file 1268:error:2306B076:PKCS12 routines:PKCS12_gen_mac:unknown digest algo

Problem calling PKCS12_gen_mac() twice

2002-09-11 Thread Stefan Richter
Hi all, i have a problem with the PKCS12_gen_mac() which is called from within PKCS12_verify_mac(). I've a function which extracts the private key from a PKCS#12 file. If I call it once all is fine, but if I call it twice (with the same or another PKCS#12 file) the second run fails calling PKCS12