Subject: | Use of PKCS12_certbag2x509 is not compatible with openssl 0.9.6 |
Openssl 0.9.6 does not provide PKCS12_certbag2x509. There is a M_PKCS12_certbag2x509 macro which seems equivalent (the function in 0.9.7 does more checking, which dump_certs_pkeys_bag itself does)
Alternatively, PKCS12_parse() could be used to do _all_ the parsing - It takes a PKCS12 *, and apassword, and returns a PKEY, X509 * client cert and STACK_OF(X509) ** CA certs.