Lines Matching refs:p12

35     PKCS12 *p12 = NULL;  in PKCS12_load()  local
41 p12 = PKCS12_init_ex(NID_pkcs7_data, testctx, "provider=default"); in PKCS12_load()
42 if (!TEST_ptr(p12)) in PKCS12_load()
45 if (!TEST_true(p12 == d2i_PKCS12_bio(bio, &p12))) in PKCS12_load()
50 return p12; in PKCS12_load()
54 PKCS12_free(p12); in PKCS12_load()
64 static int changepass(PKCS12 *p12, EVP_PKEY *key, X509 *cert, STACK_OF(X509) *ca) in changepass() argument
73 if (!TEST_true(PKCS12_newpass(p12, in_pass, "NEWPASS"))) in changepass()
77 if (!TEST_true(i2d_PKCS12_bio(bio, p12))) in changepass()
106 PKCS12 *p12 = NULL; in pkcs12_parse_test() local
112 p12 = PKCS12_load(in_file); in pkcs12_parse_test()
113 if (!TEST_ptr(p12)) in pkcs12_parse_test()
116 if (!TEST_true(PKCS12_parse(p12, in_pass, &key, &cert, &ca))) in pkcs12_parse_test()
125 if (has_key && !changepass(p12, key, cert, ca)) in pkcs12_parse_test()
130 PKCS12_free(p12); in pkcs12_parse_test()
145 PKCS12 *p12 = NULL; in pkcs12_create_ex2_setup() local
146 p12 = PKCS12_load("out6.p12"); in pkcs12_create_ex2_setup()
147 if (!TEST_ptr(p12)) in pkcs12_create_ex2_setup()
150 if (!TEST_true(PKCS12_parse(p12, "", key, cert, ca))) in pkcs12_create_ex2_setup()
153 return p12; in pkcs12_create_ex2_setup()
155 PKCS12_free(p12); in pkcs12_create_ex2_setup()
162 PKCS12 *ptr = NULL, *p12 = NULL; in pkcs12_create_ex2_test() local
167 p12 = pkcs12_create_ex2_setup(&key, &cert, &ca); in pkcs12_create_ex2_test()
168 if (!TEST_ptr(p12)) in pkcs12_create_ex2_test()
221 PKCS12_free(p12); in pkcs12_create_ex2_test()