PKCS12_SAFEBAG_get1_cert
#define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert
X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);