diff options
Diffstat (limited to 'kexgex.c')
-rw-r--r-- | kexgex.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | RCSID("$OpenBSD: kexgex.c,v 1.6 2001/06/07 20:23:04 markus Exp $"); | 27 | RCSID("$OpenBSD: kexgex.c,v 1.7 2001/06/23 02:34:29 markus Exp $"); |
28 | 28 | ||
29 | #include <openssl/bn.h> | 29 | #include <openssl/bn.h> |
30 | 30 | ||
@@ -177,9 +177,10 @@ kexgex_client(Kex *kex) | |||
177 | if (server_host_key == NULL) | 177 | if (server_host_key == NULL) |
178 | fatal("cannot decode server_host_key_blob"); | 178 | fatal("cannot decode server_host_key_blob"); |
179 | 179 | ||
180 | if (kex->check_host_key == NULL) | 180 | if (kex->verify_host_key == NULL) |
181 | fatal("cannot check server_host_key"); | 181 | fatal("cannot verify server_host_key"); |
182 | kex->check_host_key(server_host_key); | 182 | if (kex->verify_host_key(server_host_key) == -1) |
183 | fatal("server_host_key verification failed"); | ||
183 | 184 | ||
184 | /* DH paramter f, server public DH key */ | 185 | /* DH paramter f, server public DH key */ |
185 | dh_server_pub = BN_new(); | 186 | dh_server_pub = BN_new(); |