X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/010e6f63edc4be4e127c18fc6c2c2a138efc93d2..f7b5d10863b6d9e083dc15c821db8d5e1d2f3f89:/server/keyexch.c diff --git a/server/keyexch.c b/server/keyexch.c index e7052729..6490dd73 100644 --- a/server/keyexch.c +++ b/server/keyexch.c @@ -77,7 +77,7 @@ /*----- Tunable parameters ------------------------------------------------*/ -#define T_VALID MIN(2) /* Challenge validity period */ +#define T_VALID SEC(20) /* Challenge validity period */ #define T_RETRY SEC(10) /* Challenge retransmit interval */ #define VALIDP(kx, now) ((now) < (kx)->t_valid) @@ -85,8 +85,7 @@ /*----- Static tables -----------------------------------------------------*/ static const char *const pkname[] = { - "pre-challenge", "cookie", "challenge", - "reply", "switch-rq", "switch-ok" + "pre-challenge", "challenge", "reply", "switch-rq", "switch-ok" }; /*----- Various utilities -------------------------------------------------*/ @@ -604,7 +603,7 @@ static kxchal *respond(keyexch *kx, unsigned msg, buf *b) h = GH_INIT(algs.h); HASH_STRING(h, "tripe-check-hash"); GH_HASH(h, ck, indexsz); - GH_DONE(h, kxc->hc); + GH_DONE(h, kxc->ck); GH_DESTROY(h); h = GH_INIT(algs.h);