summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-10-03 17:39:38 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-10-03 17:39:38 +0000
commit3cecc9a41f32681b8729a7e4b32dbe8fe80a3f8a (patch)
tree2738b5bdd1b2cae3fc86685b3ce5075f583153ad /sshconnect.c
parent908afed17f97a3f5814f8d0d16be27b9f487f93d (diff)
- markus@cvs.openbsd.org 2001/10/01 21:51:16
[readconf.c readconf.h ssh.1 sshconnect.c] add NoHostAuthenticationForLocalhost; note that the hostkey is now check for localhost, too.
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 0ae100fed..6a9b5489e 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.110 2001/07/25 14:35:18 markus Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.111 2001/10/01 21:51:16 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -587,7 +587,8 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
587 salen = sizeof(struct sockaddr_storage); 587 salen = sizeof(struct sockaddr_storage);
588 break; 588 break;
589 } 589 }
590 if (local && options.host_key_alias == NULL) { 590 if (options.no_host_authentication_for_localhost == 1 && local &&
591 options.host_key_alias == NULL) {
591 debug("Forcing accepting of host key for " 592 debug("Forcing accepting of host key for "
592 "loopback/localhost."); 593 "loopback/localhost.");
593 return 0; 594 return 0;