summaryrefslogtreecommitdiff
path: root/kexgexc.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-10 00:18:28 +0000
committerColin Watson <cjwatson@debian.org>2014-02-10 00:18:28 +0000
commit9a975a9faed7c4f334e8c8490db3e77e102f2b21 (patch)
tree764a885ec9a963f6a8b15de6e1765f16b9ac4738 /kexgexc.c
parentee196dab7c5f97f0b80c8099343a375bead92010 (diff)
parentcdb6c90811caa5df2df856be9b0b16db020fe31d (diff)
Import openssh_6.5p1.orig.tar.gz
Diffstat (limited to 'kexgexc.c')
-rw-r--r--kexgexc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kexgexc.c b/kexgexc.c
index 5a3be2005..629b5fbbc 100644
--- a/kexgexc.c
+++ b/kexgexc.c
@@ -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);