Lines Matching refs:c2
410 test_mic(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2)
423 val = verify_mic(c2, hc2, &msg, &mic);
425 errx(1, "verify_mic failed to host: %s", c2->moniker);
431 test_wrap(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2,
448 val = decrypt_token(c2, hc2, conf, &wrapped, &out);
451 warnx("decrypt_token failed to host: %s", c2->moniker);
470 test_wrap_ext(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2,
493 val = unwrap_token_ext(c2, hc2, conf, bflags, &header, &wrapped, &trailer, &out);
496 warnx("decrypt_token failed to host: %s", c2->moniker);
516 test_token(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, int wrap_ext)
523 test_mic(c1, hc1, c2, hc2);
524 test_mic(c2, hc2, c1, hc1);
527 val = test_wrap(c1, hc1, c2, hc2, 0);
529 val = test_wrap(c2, hc2, c1, hc1, 0);
532 val = test_wrap(c1, hc1, c2, hc2, 1);
534 val = test_wrap(c2, hc2, c1, hc1, 1);
539 val = test_wrap_ext(c1, hc1, c2, hc2, 1, 0);
541 val = test_wrap_ext(c2, hc2, c1, hc1, 1, 0);
544 val = test_wrap_ext(c1, hc1, c2, hc2, 1, 1);
546 val = test_wrap_ext(c2, hc2, c1, hc1, 1, 1);
549 val = test_wrap_ext(c1, hc1, c2, hc2, 0, 0);
551 val = test_wrap_ext(c2, hc2, c1, hc1, 0, 0);
554 val = test_wrap_ext(c1, hc1, c2, hc2, 0, 1);
556 val = test_wrap_ext(c2, hc2, c1, hc1, 0, 1);