From 1757e76a73818470d0d8d062ca2d05e3fc7c9524 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 13 Feb 2005 22:09:47 +0000 Subject: new --- src/cmd/auth/factotum/apop.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/cmd/auth/factotum/apop.c') diff --git a/src/cmd/auth/factotum/apop.c b/src/cmd/auth/factotum/apop.c index 8e340d47..5703571d 100644 --- a/src/cmd/auth/factotum/apop.c +++ b/src/cmd/auth/factotum/apop.c @@ -6,7 +6,7 @@ * Protocol: * * S -> C: random@domain - * C -> S: hex-response + * C -> S: user hex-response * S -> C: ok * * Note that this is the protocol between factotum and the local @@ -15,7 +15,7 @@ * programs. * * If S sends "bad [msg]" instead of "ok", that is a hint that the key is bad. - * The protocol goes back to "C -> S: user". + * The protocol goes back to "C -> S: user hex-response". */ #include "std.h" @@ -240,7 +240,7 @@ out: keyclose(s.k); free(user); free(resp); -// xioclose(s.asfd); + xioclose(s.asfd); return ret; } @@ -336,15 +336,18 @@ apoproles[] = }; Proto apop = { -.name= "apop", -.roles= apoproles, -.checkkey= apopcheck, -.keyprompt= "user? !password?", + "apop", + apoproles, + "user? !password?", + apopcheck, + nil }; Proto cram = { -.name= "cram", -.roles= apoproles, -.checkkey= apopcheck, -.keyprompt= "user? !password?", + "cram", + apoproles, + "user? !password?", + apopcheck, + nil }; + -- cgit v1.2.3