Lines Matching defs:vct
233 struct verify_cert_test *vct;
239 vct = &verify_cert_tests[i];
242 vct->id) == -1)
245 vct->id) == -1)
247 if (asprintf(&roots_dir, "./%s/roots", vct->id) == -1)
250 fprintf(stderr, "== Test %zu (%s)\n", i, vct->id);
254 if ((mode == MODE_VERIFY && chains == vct->want_chains) ||
255 (chains == 0 && vct->want_chains == 0) ||
256 (chains == 1 && vct->want_chains > 0)) {
258 chains, vct->failing ? " (legacy failure)" : "");
259 if (mode == MODE_LEGACY_VFY && vct->failing)
263 chains, vct->failing ? " (legacy failure)" : "");
264 if (!vct->failing)
269 if (error != vct->want_legacy_error) {
271 "want %d\n", error, vct->want_legacy_error);
274 if (error_depth != vct->want_legacy_error_depth) {
277 vct->want_legacy_error_depth);
281 if (error != vct->want_error) {
283 error, vct->want_error);
286 if (error_depth != vct->want_error_depth) {
288 " %d\n", error_depth, vct->want_error_depth);