Lines Matching refs:chain

180   if (cert->chain) {  in ssl_cert_dup()
181 ret->chain = X509_chain_up_ref(cert->chain); in ssl_cert_dup()
182 if (!ret->chain) { in ssl_cert_dup()
208 sk_X509_pop_free(cert->chain, X509_free); in ssl_cert_clear_certs()
209 cert->chain = NULL; in ssl_cert_clear_certs()
227 int ssl_cert_set0_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set0_chain() argument
228 sk_X509_pop_free(cert->chain, X509_free); in ssl_cert_set0_chain()
229 cert->chain = chain; in ssl_cert_set0_chain()
233 int ssl_cert_set1_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set1_chain() argument
235 if (chain == NULL) { in ssl_cert_set1_chain()
239 dchain = X509_chain_up_ref(chain); in ssl_cert_set1_chain()
253 if (cert->chain == NULL) { in ssl_cert_add0_chain_cert()
254 cert->chain = sk_X509_new_null(); in ssl_cert_add0_chain_cert()
256 if (cert->chain == NULL || !sk_X509_push(cert->chain, x509)) { in ssl_cert_add0_chain_cert()
432 STACK_OF(X509) *chain = cert->chain; in ssl_add_cert_chain()
439 if ((ssl->mode & SSL_MODE_NO_AUTO_CHAIN) || chain != NULL) { in ssl_add_cert_chain()
448 for (i = 0; i < sk_X509_num(chain); i++) { in ssl_add_cert_chain()
449 x = sk_X509_value(chain, i); in ssl_add_cert_chain()
464 for (i = 0; i < sk_X509_num(xs_ctx.chain); i++) { in ssl_add_cert_chain()
465 x = sk_X509_value(xs_ctx.chain, i); in ssl_add_cert_chain()
478 int SSL_CTX_set0_chain(SSL_CTX *ctx, STACK_OF(X509) *chain) { in SSL_CTX_set0_chain() argument
479 return ssl_cert_set0_chain(ctx->cert, chain); in SSL_CTX_set0_chain()
482 int SSL_CTX_set1_chain(SSL_CTX *ctx, STACK_OF(X509) *chain) { in SSL_CTX_set1_chain() argument
483 return ssl_cert_set1_chain(ctx->cert, chain); in SSL_CTX_set1_chain()
486 int SSL_set0_chain(SSL *ssl, STACK_OF(X509) *chain) { in SSL_set0_chain() argument
487 return ssl_cert_set0_chain(ssl->cert, chain); in SSL_set0_chain()
490 int SSL_set1_chain(SSL *ssl, STACK_OF(X509) *chain) { in SSL_set1_chain() argument
491 return ssl_cert_set1_chain(ssl->cert, chain); in SSL_set1_chain()
527 *out_chain = ctx->cert->chain; in SSL_CTX_get0_chain_certs()
537 *out_chain = ssl->cert->chain; in SSL_get0_chain_certs()