Lines Matching defs:chain

73  * Item in a verification chain: cert and flags for it
81 * Max size of verification chain: end-entity + intermediates + trusted root
1311 static int mbedtls_x509_crt_parse_der_internal(mbedtls_x509_crt *chain,
1319 mbedtls_x509_crt *crt = chain, *prev = NULL;
1334 * Add new certificate on the end of the chain if needed.
1354 if (crt != chain) {
1364 int mbedtls_x509_crt_parse_der_nocopy(mbedtls_x509_crt *chain,
1368 return mbedtls_x509_crt_parse_der_internal(chain, buf, buflen, 0, NULL, NULL);
1371 int mbedtls_x509_crt_parse_der_with_ext_cb(mbedtls_x509_crt *chain,
1378 return mbedtls_x509_crt_parse_der_internal(chain, buf, buflen, make_copy, cb, p_ctx);
1381 int mbedtls_x509_crt_parse_der(mbedtls_x509_crt *chain,
1385 return mbedtls_x509_crt_parse_der_internal(chain, buf, buflen, 1, NULL, NULL);
1392 int mbedtls_x509_crt_parse(mbedtls_x509_crt *chain,
1404 if (chain == NULL || buf == NULL) {
1419 return mbedtls_x509_crt_parse_der(chain, buf, buflen);
1422 return mbedtls_x509_crt_parse_der(chain, buf, buflen);
1468 ret = mbedtls_x509_crt_parse_der(chain, pem.buf, pem.buflen);
1506 int mbedtls_x509_crt_parse_file(mbedtls_x509_crt *chain, const char *path)
1516 ret = mbedtls_x509_crt_parse(chain, buf, n);
1523 int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path)
1577 w_ret = mbedtls_x509_crt_parse_file(chain, filename);
1641 t_ret = mbedtls_x509_crt_parse_file(chain, entry_name);
2242 * of the chain, 0 otherwise
2354 * Find a parent in trusted CAs or the provided chain, or return NULL.
2361 * by a chain of possible intermediates
2366 * - [in] path_cnt: number of links in the chain so far (EE -> ... -> child)
2367 * - [in] self_cnt: number of self-signed certs in the chain so far
2465 * Build and verify a certificate chain
2468 * a list of trusted certs R1, ... Rp, try to build and verify a chain
2470 * such that every cert in the chain is a child of the next one,
2473 * Verify that chain and return it with flags for all issues found.
2478 * -> return that chain with NOT_TRUSTED set on Ciq
2494 * - [out] ver_chain: the built and verified chain
2500 * - non-zero if the chain could not be fully built and examined
2501 * - 0 is the chain was successfully built and examined,
2556 /* Add certificate to the verification chain */
2620 /* Look for a parent in trusted CAs or up the chain */
2657 /* return immediately to avoid overflow the chain array */
3007 * Merge the flags for all certs in the chain, after calling callback
3042 * as that isn't done as part of chain building/verification currently
3043 * - builds and verifies the chain
3097 /* Check the chain */
3217 * Initialize a certificate chain