diff options
Diffstat (limited to 'kexecdhc.c')
-rw-r--r-- | kexecdhc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kexecdhc.c b/kexecdhc.c index 6193836c7..e3d1cf5f9 100644 --- a/kexecdhc.c +++ b/kexecdhc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexecdhc.c,v 1.4 2013/05/17 00:13:13 djm Exp $ */ | 1 | /* $OpenBSD: kexecdhc.c,v 1.6 2014/01/12 08:13:13 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2010 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2010 Damien Miller. All rights reserved. |
@@ -124,7 +124,7 @@ kexecdh_client(Kex *kex) | |||
124 | 124 | ||
125 | /* calc and verify H */ | 125 | /* calc and verify H */ |
126 | kex_ecdh_hash( | 126 | kex_ecdh_hash( |
127 | kex->evp_md, | 127 | kex->hash_alg, |
128 | group, | 128 | group, |
129 | kex->client_version_string, | 129 | kex->client_version_string, |
130 | kex->server_version_string, | 130 | kex->server_version_string, |
@@ -152,7 +152,7 @@ kexecdh_client(Kex *kex) | |||
152 | memcpy(kex->session_id, hash, kex->session_id_len); | 152 | memcpy(kex->session_id, hash, kex->session_id_len); |
153 | } | 153 | } |
154 | 154 | ||
155 | kex_derive_keys(kex, hash, hashlen, shared_secret); | 155 | kex_derive_keys_bn(kex, hash, hashlen, shared_secret); |
156 | BN_clear_free(shared_secret); | 156 | BN_clear_free(shared_secret); |
157 | kex_finish(kex); | 157 | kex_finish(kex); |
158 | } | 158 | } |