diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-02 23:05:09 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-02 23:05:09 +0000 |
commit | ad56ffb686058ef528fd3022c420218ad8e8ba88 (patch) | |
tree | e54143f782eacc1c588de8ea7ba43a70f899b616 /usr.bin | |
parent | 761bdeb75bb4c0329bd72d7bd3d4b8242338abaf (diff) |
warn only about mismatch if key is _used_
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/auth-rsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/auth-rsa.c b/usr.bin/ssh/auth-rsa.c index 2b811252d14..00c7c342f0a 100644 --- a/usr.bin/ssh/auth-rsa.c +++ b/usr.bin/ssh/auth-rsa.c @@ -16,7 +16,7 @@ */ #include "includes.h" -RCSID("$Id: auth-rsa.c,v 1.15 1999/12/02 20:17:49 markus Exp $"); +RCSID("$Id: auth-rsa.c,v 1.16 1999/12/02 23:05:08 markus Exp $"); #include "rsa.h" #include "packet.h" @@ -253,16 +253,16 @@ auth_rsa(struct passwd *pw, BIGNUM *client_n) } /* cp now points to the comment part. */ + /* Check if the we have found the desired key (identified by its modulus). */ + if (BN_cmp(n, client_n) != 0) + continue; + /* check the real bits */ if (bits != BN_num_bits(n)) log("Warning: %s, line %ld: keysize mismatch: " "actual %d vs. announced %d.", file, linenum, BN_num_bits(n), bits); - /* Check if the we have found the desired key (identified by its modulus). */ - if (BN_cmp(n, client_n) != 0) - continue; - /* We have found the desired key. */ /* Perform the challenge-response dialog for this key. */ |