sorry for repetition but the thread involving my doubt (regd load_cert() in apps.c) was abruptly ended.
i want to know if that doubt is my mis-understanding or a bug.
basically i was trying to read the certificate from a .p12 file.
Here is my doubt for your convenince :
-----------------------------------------------------
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, although the load_cert function gets the password in argument "pass". 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)
----------------------------------------------------
<>
Thanks,
Sravan
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]