diff options
-rw-r--r-- | crypto/openssh/auth-skey.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |