diff options
author | rsc <devnull@localhost> | 2005-02-13 22:09:47 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-13 22:09:47 +0000 |
commit | 1757e76a73818470d0d8d062ca2d05e3fc7c9524 (patch) | |
tree | 97266abddbb7fe1611c4daaeef4e4390a5895b39 /src/cmd/auth/factotum/apop.c | |
parent | 45993349d8414bdf7eb24d8996e02aa4d53951ad (diff) | |
download | plan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.tar.gz plan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.tar.bz2 plan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.zip |
new
Diffstat (limited to 'src/cmd/auth/factotum/apop.c')
-rw-r--r-- | src/cmd/auth/factotum/apop.c | 25 |
1 files changed, 14 insertions, 11 deletions
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 }; + |