#include
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca);
pp1122 is the PPKKCCSS1122 structure to parse. ppaassss is the passphrase to use. If successful the private key will be written to **ppkkeeyy, the corresponding certificate to **cceerrtt and any additional certificates to **ccaa.
The ffrriieennddllyyNNaammee and llooccaallKKeeyyIIDD attributes (if present) on each certificate will be stored in the aalliiaass and kkeeyyiidd attributes of the XX550099 structure.
Only ffrriieennddllyyNNaammee and llooccaallKKeeyyIIDD attributes are currently stored in certificates. Other attributes are discarded.
Attributes currently cannot be store in the private key EEVVPP__PPKKEEYY structure.