From 8528b8bd5786d171be58abcaa0847c0bed964985 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 20 Mar 2002 22:02:02 +0000 Subject: - Change the prompt from "S/Key Password: " to "OPIE Password: " - If the user doesn't have an OPIE key, don't challenge him. This is a workaround until I get PAM to work properly with ssh2. Sponsored by: DARPA, NAI Labs --- crypto/openssh/auth-skey.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crypto/openssh') diff --git a/crypto/openssh/auth-skey.c b/crypto/openssh/auth-skey.c index f649ac8..b538b39 100644 --- a/crypto/openssh/auth-skey.c +++ b/crypto/openssh/auth-skey.c @@ -38,7 +38,7 @@ skey_init_ctx(Authctxt *authctxt) return authctxt; } -#define PROMPT "\nS/Key Password: " +#define PROMPT "\nOPIE Password: " static int skey_query(void *ctx, char **name, char **infotxt, @@ -49,6 +49,8 @@ skey_query(void *ctx, char **name, char **infotxt, int len; struct opie opie; + if (opie_haskey(authctxt->user) != 0) + return -1; if (opiechallenge(&opie, authctxt->user, challenge) == -1) return -1; -- cgit v1.1