Lines Matching defs:chain
897 static int ssl_add_cert_to_wpacket(SSL *s, WPACKET *pkt, X509 *x, int chain)
915 chain)) {
923 /* Add certificate chain to provided WPACKET */
929 STACK_OF(X509) *chain = NULL;
938 * If we have a certificate specific chain use it, else use parent ctx.
940 if (cpk->chain != NULL)
941 extra_certs = cpk->chain;
966 * It is valid for the chain not to be complete (because normally we
967 * don't include the root cert in the chain). Therefore we deliberately
969 * the cert - we're just building as much of the chain as we can
974 chain = X509_STORE_CTX_get0_chain(xs_ctx);
975 i = ssl_security_cert_chain(s, chain, NULL, 0);
987 chain_count = sk_X509_num(chain);
989 x = sk_X509_value(chain, i);