aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auth/factotum/apop.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-13 22:09:47 +0000
committerrsc <devnull@localhost>2005-02-13 22:09:47 +0000
commit1757e76a73818470d0d8d062ca2d05e3fc7c9524 (patch)
tree97266abddbb7fe1611c4daaeef4e4390a5895b39 /src/cmd/auth/factotum/apop.c
parent45993349d8414bdf7eb24d8996e02aa4d53951ad (diff)
downloadplan9port-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.c25
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
};
+