diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: ssh.c,v 1.180 2002/06/30 21:59:45 deraadt Exp $"); | 43 | RCSID("$OpenBSD: ssh.c,v 1.181 2002/07/03 14:21:05 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/evp.h> | 45 | #include <openssl/evp.h> |
46 | #include <openssl/err.h> | 46 | #include <openssl/err.h> |
@@ -649,7 +649,8 @@ again: | |||
649 | _PATH_HOST_RSA_KEY_FILE, "", NULL); | 649 | _PATH_HOST_RSA_KEY_FILE, "", NULL); |
650 | PRIV_END; | 650 | PRIV_END; |
651 | 651 | ||
652 | if (sensitive_data.keys[0] == NULL && | 652 | if (options.hostbased_authentication == 1 && |
653 | sensitive_data.keys[0] == NULL && | ||
653 | sensitive_data.keys[1] == NULL && | 654 | sensitive_data.keys[1] == NULL && |
654 | sensitive_data.keys[2] == NULL) { | 655 | sensitive_data.keys[2] == NULL) { |
655 | sensitive_data.keys[1] = key_load_public( | 656 | sensitive_data.keys[1] = key_load_public( |