Lines Matching refs:p12
42 int dump_certs_keys_p12(BIO *out, const PKCS12 *p12,
188 PKCS12 *p12 = NULL; in pkcs12_main() local
694 p12 = PKCS12_create_ex2(cpass, name, key, ee_cert, certs, in pkcs12_main()
699 if (p12 == NULL) { in pkcs12_main()
712 if (!PKCS12_set_pbmac1_pbkdf2(p12, mpass, -1, NULL, in pkcs12_main()
719 if (!PKCS12_set_mac(p12, mpass, -1, NULL, macsaltlen, maciter, macmd)) { in pkcs12_main()
733 i2d_PKCS12_bio(out, p12); in pkcs12_main()
754 p12 = PKCS12_init_ex(NID_pkcs7_data, app_get0_libctx(), app_get0_propq()); in pkcs12_main()
755 if (p12 == NULL) { in pkcs12_main()
759 if ((p12 = d2i_PKCS12_bio(in, &p12)) == NULL) { in pkcs12_main()
782 if ((options & INFO) && PKCS12_mac_present(p12)) { in pkcs12_main()
789 PKCS12_get0_mac(&tmac, &macalgid, &tsalt, &tmaciter, p12); in pkcs12_main()
831 PKCS12_get0_mac(NULL, &macalgid, NULL, NULL, p12); in pkcs12_main()
848 if (!mpass[0] && PKCS12_verify_mac(p12, NULL, 0)) { in pkcs12_main()
852 } else if (!PKCS12_verify_mac(p12, mpass, -1)) { in pkcs12_main()
873 if (!PKCS12_verify_mac(p12, badpass, -1)) { in pkcs12_main()
892 if (!dump_certs_keys_p12(out, p12, cpass, -1, options, passout, enc)) { in pkcs12_main()
899 PKCS12_free(p12); in pkcs12_main()
936 int dump_certs_keys_p12(BIO *out, const PKCS12 *p12, const char *pass, in dump_certs_keys_p12() argument
945 if ((asafes = PKCS12_unpack_authsafes(p12)) == NULL) in dump_certs_keys_p12()