Lines Matching refs:chain

142         if (cpk->chain) {  in ssl_cert_dup()
143 rpk->chain = X509_chain_up_ref(cpk->chain); in ssl_cert_dup()
144 if (!rpk->chain) { in ssl_cert_dup()
250 OSSL_STACK_OF_X509_free(cpk->chain); in ssl_cert_clear_certs()
251 cpk->chain = NULL; in ssl_cert_clear_certs()
294 int ssl_cert_set0_chain(SSL_CONNECTION *s, SSL_CTX *ctx, STACK_OF(X509) *chain) in ssl_cert_set0_chain() argument
301 for (i = 0; i < sk_X509_num(chain); i++) { in ssl_cert_set0_chain()
302 X509 *x = sk_X509_value(chain, i); in ssl_cert_set0_chain()
310 OSSL_STACK_OF_X509_free(cpk->chain); in ssl_cert_set0_chain()
311 cpk->chain = chain; in ssl_cert_set0_chain()
315 int ssl_cert_set1_chain(SSL_CONNECTION *s, SSL_CTX *ctx, STACK_OF(X509) *chain) in ssl_cert_set1_chain() argument
319 if (!chain) in ssl_cert_set1_chain()
321 dchain = X509_chain_up_ref(chain); in ssl_cert_set1_chain()
343 if (!cpk->chain) in ssl_cert_add0_chain_cert()
344 cpk->chain = sk_X509_new_null(); in ssl_cert_add0_chain_cert()
345 if (!cpk->chain || !sk_X509_push(cpk->chain, x)) in ssl_cert_add0_chain_cert()
1061 STACK_OF(X509) *chain = NULL, *untrusted = NULL; in ssl_build_cert_chain()
1075 for (i = 0; i < sk_X509_num(cpk->chain); i++) { in ssl_build_cert_chain()
1076 x = sk_X509_value(cpk->chain, i); in ssl_build_cert_chain()
1090 untrusted = cpk->chain; in ssl_build_cert_chain()
1114 chain = X509_STORE_CTX_get1_chain(xs_ctx); in ssl_build_cert_chain()
1123 x = sk_X509_shift(chain); in ssl_build_cert_chain()
1126 if (sk_X509_num(chain) > 0) { in ssl_build_cert_chain()
1128 x = sk_X509_value(chain, sk_X509_num(chain) - 1); in ssl_build_cert_chain()
1130 x = sk_X509_pop(chain); in ssl_build_cert_chain()
1139 for (i = 0; i < sk_X509_num(chain); i++) { in ssl_build_cert_chain()
1140 x = sk_X509_value(chain, i); in ssl_build_cert_chain()
1144 OSSL_STACK_OF_X509_free(chain); in ssl_build_cert_chain()
1149 OSSL_STACK_OF_X509_free(cpk->chain); in ssl_build_cert_chain()
1150 cpk->chain = chain; in ssl_build_cert_chain()
1161 int ssl_cert_set_cert_store(CERT *c, X509_STORE *store, int chain, int ref) in ssl_cert_set_cert_store() argument
1164 if (chain) in ssl_cert_set_cert_store()
1175 int ssl_cert_get_cert_store(CERT *c, X509_STORE **pstore, int chain) in ssl_cert_get_cert_store() argument
1177 *pstore = (chain ? c->chain_store : c->verify_store); in ssl_cert_get_cert_store()