query on api PKCS12_parse()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

query on api PKCS12_parse()

simonkbaby
Hello,
I am using the api   PKCS12_parse for creating the private key and certs. When I send a wrong password to the API, my process crashes in the call PKCS12_parse(). The same API works fine when I pass the correct passwd. Can someone please help to send some clues to resolve/debug this issue. 

p12 = d2i_PKCS12_fp(fp, NULL);
PKCS12_parse(p12, passwd, &pkey, &cert, &ca))


Regards
Simon