Re: How to get a stack of CA certificates from PKCS12_parse?

2005-01-13 Thread pattyzheng
Steve, Thank you very much for your response. The reason I didn't use sk_X509_num() instead of ((STACK *)ca)->num is because I will change the the program to load libeay32.dll instead of linking my program with library libeay32.lib. sk_X509_num() is a macro and it is the replacement of func

How to get a stack of CA certificates from PKCS12_parse?

2005-01-13 Thread pattyzheng
Hello all, I want to load and parse certificates from a file(.p12) using d2i_PKCS12_fp(..) and PKCS12_parse(..). The file contains two certificates. I want to obtain all of the certificates from the file. But after I called PKCS12_parse(..) I only got one certificate. I couldn't get the s