Lines Matching refs:cert
64 static int changepass(PKCS12 *p12, EVP_PKEY *key, X509 *cert, STACK_OF(X509) *ca) in changepass() argument
90 if (!TEST_ptr(cert2) || !TEST_int_eq(X509_cmp(cert, cert2), 0)) in changepass()
108 X509 *cert = NULL; in pkcs12_parse_test() local
116 if (!TEST_true(PKCS12_parse(p12, in_pass, &key, &cert, &ca))) in pkcs12_parse_test()
121 if ((has_cert && !TEST_ptr(cert)) || (!has_cert && !TEST_ptr_null(cert))) in pkcs12_parse_test()
125 if (has_key && !changepass(p12, key, cert, ca)) in pkcs12_parse_test()
132 X509_free(cert); in pkcs12_parse_test()
143 static PKCS12 *pkcs12_create_ex2_setup(EVP_PKEY **key, X509 **cert, STACK_OF(X509) **ca) in pkcs12_create_ex2_setup() argument
150 if (!TEST_true(PKCS12_parse(p12, "", key, cert, ca))) in pkcs12_create_ex2_setup()
164 X509 *cert = NULL; in pkcs12_create_ex2_test() local
167 p12 = pkcs12_create_ex2_setup(&key, &cert, &ca); in pkcs12_create_ex2_test()
182 if (!TEST_ptr(cert)) in pkcs12_create_ex2_test()
188 cert, NULL, NID_undef, NID_undef, in pkcs12_create_ex2_test()
199 cert, NULL, NID_undef, NID_undef, in pkcs12_create_ex2_test()
210 cert, NULL, NID_undef, NID_undef, in pkcs12_create_ex2_test()
224 X509_free(cert); in pkcs12_create_ex2_test()