diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 5b354010d..e2d64d7b1 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: sshconnect2.c,v 1.74 2001/05/19 16:32:16 markus Exp $"); | 26 | RCSID("$OpenBSD: sshconnect2.c,v 1.75 2001/06/23 02:34:33 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
29 | #include <openssl/md5.h> | 29 | #include <openssl/md5.h> |
@@ -73,10 +73,10 @@ struct sockaddr *xxx_hostaddr; | |||
73 | Kex *xxx_kex = NULL; | 73 | Kex *xxx_kex = NULL; |
74 | 74 | ||
75 | int | 75 | int |
76 | check_host_key_callback(Key *hostkey) | 76 | verify_host_key_callback(Key *hostkey) |
77 | { | 77 | { |
78 | check_host_key(xxx_host, xxx_hostaddr, hostkey, | 78 | if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1) |
79 | options.user_hostfile2, options.system_hostfile2); | 79 | fatal("verify_host_key failed"); |
80 | return 0; | 80 | return 0; |
81 | } | 81 | } |
82 | 82 | ||
@@ -119,7 +119,7 @@ ssh_kex2(char *host, struct sockaddr *hostaddr) | |||
119 | kex = kex_setup(myproposal); | 119 | kex = kex_setup(myproposal); |
120 | kex->client_version_string=client_version_string; | 120 | kex->client_version_string=client_version_string; |
121 | kex->server_version_string=server_version_string; | 121 | kex->server_version_string=server_version_string; |
122 | kex->check_host_key=&check_host_key_callback; | 122 | kex->verify_host_key=&verify_host_key_callback; |
123 | 123 | ||
124 | xxx_kex = kex; | 124 | xxx_kex = kex; |
125 | 125 | ||