summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-06-23 02:34:34 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-06-23 02:34:34 +0000
commitd497a464cee4eb42110a471f5750a880ed238ab2 (patch)
tree3a76ffa9bf1762ce24e82b27617674235a32b45f /usr.bin/ssh/sshconnect2.c
parentaaeec83f2d44736ab635a647a44d3e70d7110dd9 (diff)
get rid of known_hosts2, use it for hostkey lookup, but do not modify.
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index 5b354010d25..e2d64d7b194 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.74 2001/05/19 16:32:16 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.75 2001/06/23 02:34:33 markus Exp $");
#include <openssl/bn.h>
#include <openssl/md5.h>
@@ -73,10 +73,10 @@ struct sockaddr *xxx_hostaddr;
Kex *xxx_kex = NULL;
int
-check_host_key_callback(Key *hostkey)
+verify_host_key_callback(Key *hostkey)
{
- check_host_key(xxx_host, xxx_hostaddr, hostkey,
- options.user_hostfile2, options.system_hostfile2);
+ if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)
+ fatal("verify_host_key failed");
return 0;
}
@@ -119,7 +119,7 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
kex = kex_setup(myproposal);
kex->client_version_string=client_version_string;
kex->server_version_string=server_version_string;
- kex->check_host_key=&check_host_key_callback;
+ kex->verify_host_key=&verify_host_key_callback;
xxx_kex = kex;