diff options
Diffstat (limited to 'auth-skey.c')
-rw-r--r-- | auth-skey.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-skey.c b/auth-skey.c index f921fc1bb..6dc71223b 100644 --- a/auth-skey.c +++ b/auth-skey.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: auth-skey.c,v 1.12 2001/05/18 14:13:28 markus Exp $"); | 25 | RCSID("$OpenBSD: auth-skey.c,v 1.13 2001/12/19 07:18:56 deraadt Exp $"); |
26 | 26 | ||
27 | #ifdef SKEY | 27 | #ifdef SKEY |
28 | 28 | ||
@@ -40,7 +40,7 @@ skey_init_ctx(Authctxt *authctxt) | |||
40 | #define PROMPT "\nS/Key Password: " | 40 | #define PROMPT "\nS/Key Password: " |
41 | 41 | ||
42 | static int | 42 | static int |
43 | skey_query(void *ctx, char **name, char **infotxt, | 43 | skey_query(void *ctx, char **name, char **infotxt, |
44 | u_int* numprompts, char ***prompts, u_int **echo_on) | 44 | u_int* numprompts, char ***prompts, u_int **echo_on) |
45 | { | 45 | { |
46 | Authctxt *authctxt = ctx; | 46 | Authctxt *authctxt = ctx; |
@@ -72,9 +72,9 @@ static int | |||
72 | skey_respond(void *ctx, u_int numresponses, char **responses) | 72 | skey_respond(void *ctx, u_int numresponses, char **responses) |
73 | { | 73 | { |
74 | Authctxt *authctxt = ctx; | 74 | Authctxt *authctxt = ctx; |
75 | 75 | ||
76 | if (authctxt->valid && | 76 | if (authctxt->valid && |
77 | numresponses == 1 && | 77 | numresponses == 1 && |
78 | skey_haskey(authctxt->pw->pw_name) == 0 && | 78 | skey_haskey(authctxt->pw->pw_name) == 0 && |
79 | skey_passcheck(authctxt->pw->pw_name, responses[0]) != -1) | 79 | skey_passcheck(authctxt->pw->pw_name, responses[0]) != -1) |
80 | return 0; | 80 | return 0; |