diff options
Diffstat (limited to 'kexdh.c')
-rw-r--r-- | kexdh.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: kexdh.c,v 1.4 2001/06/07 20:23:04 markus Exp $"); | 26 | RCSID("$OpenBSD: kexdh.c,v 1.5 2001/06/23 02:34:29 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/crypto.h> | 28 | #include <openssl/crypto.h> |
29 | #include <openssl/bn.h> | 29 | #include <openssl/bn.h> |
@@ -123,9 +123,10 @@ kexdh_client(Kex *kex) | |||
123 | if (server_host_key == NULL) | 123 | if (server_host_key == NULL) |
124 | fatal("cannot decode server_host_key_blob"); | 124 | fatal("cannot decode server_host_key_blob"); |
125 | 125 | ||
126 | if (kex->check_host_key == NULL) | 126 | if (kex->verify_host_key == NULL) |
127 | fatal("cannot check server_host_key"); | 127 | fatal("cannot verify server_host_key"); |
128 | kex->check_host_key(server_host_key); | 128 | if (kex->verify_host_key(server_host_key) == -1) |
129 | fatal("server_host_key verification failed"); | ||
129 | 130 | ||
130 | /* DH paramter f, server public DH key */ | 131 | /* DH paramter f, server public DH key */ |
131 | dh_server_pub = BN_new(); | 132 | dh_server_pub = BN_new(); |