diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-19 07:18:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-19 07:18:57 +0000 |
commit | 4a6c79ff4f05aaae32458104529a9a9e0d3d208b (patch) | |
tree | 913e2f47bf991c8855fa3c28475f2fb77b764baa /usr.bin/ssh/auth-skey.c | |
parent | 8130d56a7bb2e09e2c8b782f3f4a54133a0bb161 (diff) |
basic KNF done while i was looking for something else
Diffstat (limited to 'usr.bin/ssh/auth-skey.c')
-rw-r--r-- | usr.bin/ssh/auth-skey.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/auth-skey.c b/usr.bin/ssh/auth-skey.c index f921fc1bb70..6dc71223b11 100644 --- a/usr.bin/ssh/auth-skey.c +++ b/usr.bin/ssh/auth-skey.c @@ -22,7 +22,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: auth-skey.c,v 1.12 2001/05/18 14:13:28 markus Exp $"); +RCSID("$OpenBSD: auth-skey.c,v 1.13 2001/12/19 07:18:56 deraadt Exp $"); #ifdef SKEY @@ -40,7 +40,7 @@ skey_init_ctx(Authctxt *authctxt) #define PROMPT "\nS/Key Password: " static int -skey_query(void *ctx, char **name, char **infotxt, +skey_query(void *ctx, char **name, char **infotxt, u_int* numprompts, char ***prompts, u_int **echo_on) { Authctxt *authctxt = ctx; @@ -72,9 +72,9 @@ static int skey_respond(void *ctx, u_int numresponses, char **responses) { Authctxt *authctxt = ctx; - + if (authctxt->valid && - numresponses == 1 && + numresponses == 1 && skey_haskey(authctxt->pw->pw_name) == 0 && skey_passcheck(authctxt->pw->pw_name, responses[0]) != -1) return 0; |