Lines Matching refs:chain
1369 mbedtls_x509_crt chain, *cur;
1372 mbedtls_x509_crt_init(&chain);
1375 TEST_EQUAL(mbedtls_x509_crt_parse_file(&chain, crt_path), ret);
1378 for (i = 0, cur = &chain; cur != NULL; cur = cur->next) {
1387 mbedtls_x509_crt_free(&chain);
1395 mbedtls_x509_crt chain, *cur;
1398 mbedtls_x509_crt_init(&chain);
1401 TEST_EQUAL(mbedtls_x509_crt_parse_path(&chain, crt_path), ret);
1404 for (i = 0, cur = &chain; cur != NULL; cur = cur->next) {
1413 mbedtls_x509_crt_free(&chain);
1425 mbedtls_x509_crt trusted, chain;
1432 mbedtls_x509_crt_init(&chain);
1438 /* Load a chain with nb_int intermediates (from 01 to nb_int),
1443 TEST_EQUAL(mbedtls_x509_crt_parse_file(&chain, file_buf), 0);
1445 /* Try to verify that chain */
1446 ret = mbedtls_x509_crt_verify(&chain, &trusted, NULL, NULL, &flags,
1452 mbedtls_x509_crt_free(&chain);
1466 mbedtls_x509_crt trusted, chain;
1469 mbedtls_x509_crt_init(&chain);
1474 TEST_EQUAL(mbedtls_x509_crt_parse_file(&chain, act), 0);
1490 res = mbedtls_x509_crt_verify_with_profile(&chain, &trusted, NULL, profile,
1498 mbedtls_x509_crt_free(&chain);