Hello all,
I have a doubt regd the following function, which is defined in apps.c
X509 *load_cert(BIO *err, const char *file, int format, const char *pass, ENGINE *e, const char *cert_descrip)
In this function, if the certificate format is PKCS12, then the following code is exectued:
else if (format == FORMAT_PKCS12) { PKCS12 *p12 = d2i_PKCS12_bio(cert, NULL);
PKCS12_parse(p12, NULL, NULL, &x, NULL); PKCS12_free(p12); p12 = NULL; }
My doubt here is, why a NULL is being passed(as password) to PKCS12_parse() funtion. Where as the online documentation for the PKCS12_parse function gives it's prototype as
int |PKCS12_parse(PKCS12| *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, |STACK_OF(X509)| **ca)
I am talking about the code of load_cert in Openssl 0.9.7e
Sravan ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]