diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-08 21:42:34 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-08 21:42:34 +0000 |
commit | 85521a8799c3c203f00282511cabe9c65b45dacf (patch) | |
tree | e81a0aaa5ac7dfa2afc389506cc396a864a9d7b1 /usr.bin/ssh/sshconnect1.c | |
parent | f6c787cef5223a931e0ae9df006b8942e86586b7 (diff) |
implement client side of SSH2_MSG_USERAUTH_PK_OK (test public key ->
no need to do enter passphrase or do expensive sign operations if the
server does not accept key).
Diffstat (limited to 'usr.bin/ssh/sshconnect1.c')
-rw-r--r-- | usr.bin/ssh/sshconnect1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect1.c b/usr.bin/ssh/sshconnect1.c index c5ff7213a01..3d45ac5a26e 100644 --- a/usr.bin/ssh/sshconnect1.c +++ b/usr.bin/ssh/sshconnect1.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect1.c,v 1.27 2001/02/15 23:19:59 markus Exp $"); +RCSID("$OpenBSD: sshconnect1.c,v 1.28 2001/03/08 21:42:33 markus Exp $"); #include <openssl/bn.h> #include <openssl/evp.h> @@ -1017,7 +1017,8 @@ ssh_userauth( /* Try RSA authentication for each identity. */ for (i = 0; i < options.num_identity_files; i++) - if (options.identity_files_type[i] == KEY_RSA1 && + if (options.identity_keys[i] != NULL && + options.identity_keys[i]->type == KEY_RSA1 && try_rsa_authentication(options.identity_files[i])) return; } |