Lines Matching refs:chain
30 STACK_OF(X509) *chain;
48 sk_X509_free(fixture->chain); in tear_down()
343 STACK_OF(X509) *chain = in execute_cmp_build_cert_chain_test()
347 if (TEST_ptr(chain)) { in execute_cmp_build_cert_chain_test()
349 ret = TEST_int_eq(0, STACK_OF_X509_cmp(chain, fixture->chain)); in execute_cmp_build_cert_chain_test()
350 OSSL_STACK_OF_X509_free(chain); in execute_cmp_build_cert_chain_test()
359 chain = X509_build_chain(fixture->cert, fixture->certs, store, in execute_cmp_build_cert_chain_test()
361 ret = TEST_int_eq(fixture->expected, chain != NULL); in execute_cmp_build_cert_chain_test()
362 if (ret && chain != NULL) { in execute_cmp_build_cert_chain_test()
364 ret = TEST_int_eq(0, STACK_OF_X509_cmp(chain, fixture->chain)); in execute_cmp_build_cert_chain_test()
365 OSSL_STACK_OF_X509_free(chain); in execute_cmp_build_cert_chain_test()
379 || !TEST_ptr(fixture->chain = sk_X509_new_null()) in test_cmp_build_cert_chain()
383 || !TEST_true(sk_X509_push(fixture->chain, endentity2)) in test_cmp_build_cert_chain()
384 || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { in test_cmp_build_cert_chain()
391 if (result && TEST_true(sk_X509_push(fixture->chain, root))) in test_cmp_build_cert_chain()
405 || !TEST_ptr(fixture->chain = sk_X509_new_null()) in test_cmp_build_cert_chain_missing_intermediate()
408 || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { in test_cmp_build_cert_chain_missing_intermediate()
423 || !TEST_ptr(fixture->chain = sk_X509_new_null()) in test_cmp_build_cert_chain_no_root()
426 || !TEST_true(sk_X509_push(fixture->chain, endentity2)) in test_cmp_build_cert_chain_no_root()
427 || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { in test_cmp_build_cert_chain_no_root()
442 || !TEST_ptr(fixture->chain = sk_X509_new_null()) in test_cmp_build_cert_chain_only_root()
444 || !TEST_true(sk_X509_push(fixture->chain, root))) { in test_cmp_build_cert_chain_only_root()
459 || !TEST_ptr(fixture->chain = sk_X509_new_null()) in test_cmp_build_cert_chain_no_certs()
460 || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { in test_cmp_build_cert_chain_no_certs()
480 if (!TEST_int_eq(0, STACK_OF_X509_cmp(sk, fixture->chain))) in execute_X509_STORE_test()
499 || !TEST_ptr(fixture->chain = sk_X509_dup(fixture->certs))) { in test_X509_STORE()
511 fixture->chain = sk_X509_new_null(); in test_X509_STORE_only_self_issued()
517 || !TEST_true(sk_X509_push(fixture->chain, root))) { in test_X509_STORE_only_self_issued()