diff options
Diffstat (limited to 'kexgexc.c')
-rw-r--r-- | kexgexc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexgexc.c,v 1.13 2013/05/17 00:13:13 djm Exp $ */ | 1 | /* $OpenBSD: kexgexc.c,v 1.16 2014/01/25 10:12:50 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 3 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
@@ -58,7 +58,7 @@ kexgex_client(Kex *kex) | |||
58 | int min, max, nbits; | 58 | int min, max, nbits; |
59 | DH *dh; | 59 | DH *dh; |
60 | 60 | ||
61 | nbits = dh_estimate(kex->we_need * 8); | 61 | nbits = dh_estimate(kex->dh_need * 8); |
62 | 62 | ||
63 | if (datafellows & SSH_OLD_DHGEX) { | 63 | if (datafellows & SSH_OLD_DHGEX) { |
64 | /* Old GEX request */ | 64 | /* Old GEX request */ |
@@ -170,7 +170,7 @@ kexgex_client(Kex *kex) | |||
170 | 170 | ||
171 | /* calc and verify H */ | 171 | /* calc and verify H */ |
172 | kexgex_hash( | 172 | kexgex_hash( |
173 | kex->evp_md, | 173 | kex->hash_alg, |
174 | kex->client_version_string, | 174 | kex->client_version_string, |
175 | kex->server_version_string, | 175 | kex->server_version_string, |
176 | buffer_ptr(&kex->my), buffer_len(&kex->my), | 176 | buffer_ptr(&kex->my), buffer_len(&kex->my), |
@@ -200,7 +200,7 @@ kexgex_client(Kex *kex) | |||
200 | kex->session_id = xmalloc(kex->session_id_len); | 200 | kex->session_id = xmalloc(kex->session_id_len); |
201 | memcpy(kex->session_id, hash, kex->session_id_len); | 201 | memcpy(kex->session_id, hash, kex->session_id_len); |
202 | } | 202 | } |
203 | kex_derive_keys(kex, hash, hashlen, shared_secret); | 203 | kex_derive_keys_bn(kex, hash, hashlen, shared_secret); |
204 | BN_clear_free(shared_secret); | 204 | BN_clear_free(shared_secret); |
205 | 205 | ||
206 | kex_finish(kex); | 206 | kex_finish(kex); |