diff options
author | Damien Miller <djm@mindrot.org> | 2005-03-01 21:47:37 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-03-01 21:47:37 +1100 |
commit | e1776155d19db4f3ab2ff42323d6499f0712cfa4 (patch) | |
tree | a1c1994615f6c15a51eddb9dabf4c7baad76efdf /sshconnect.c | |
parent | f91ee4c3def4de8b4b9409f07ab26a61e535e1e6 (diff) |
- djm@cvs.openbsd.org 2005/03/01 10:40:27
[hostfile.c hostfile.h readconf.c readconf.h ssh.1 ssh_config.5]
[sshconnect.c sshd.8]
add support for hashing host names and addresses added to known_hosts
files, to improve privacy of which hosts user have been visiting; ok
markus@ deraadt@
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c index 33ec4753a..bafe7ba92 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: sshconnect.c,v 1.159 2005/01/05 08:51:32 markus Exp $"); | 16 | RCSID("$OpenBSD: sshconnect.c,v 1.160 2005/03/01 10:40:27 djm Exp $"); |
17 | 17 | ||
18 | #include <openssl/bn.h> | 18 | #include <openssl/bn.h> |
19 | 19 | ||
@@ -678,7 +678,7 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, | |||
678 | "'%.128s' not in list of known hosts.", | 678 | "'%.128s' not in list of known hosts.", |
679 | type, ip); | 679 | type, ip); |
680 | else if (!add_host_to_hostfile(user_hostfile, ip, | 680 | else if (!add_host_to_hostfile(user_hostfile, ip, |
681 | host_key)) | 681 | host_key, options.hash_known_hosts)) |
682 | logit("Failed to add the %s host key for IP " | 682 | logit("Failed to add the %s host key for IP " |
683 | "address '%.128s' to the list of known " | 683 | "address '%.128s' to the list of known " |
684 | "hosts (%.30s).", type, ip, user_hostfile); | 684 | "hosts (%.30s).", type, ip, user_hostfile); |
@@ -744,7 +744,8 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, | |||
744 | * If not in strict mode, add the key automatically to the | 744 | * If not in strict mode, add the key automatically to the |
745 | * local known_hosts file. | 745 | * local known_hosts file. |
746 | */ | 746 | */ |
747 | if (!add_host_to_hostfile(user_hostfile, hostp, host_key)) | 747 | if (!add_host_to_hostfile(user_hostfile, hostp, host_key, |
748 | options.hash_known_hosts)) | ||
748 | logit("Failed to add the host to the list of known " | 749 | logit("Failed to add the host to the list of known " |
749 | "hosts (%.500s).", user_hostfile); | 750 | "hosts (%.500s).", user_hostfile); |
750 | else | 751 | else |