summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/kexecdhs.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-01-09 23:20:02 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-01-09 23:20:02 +0000
commit3c69bcd01bec3c42c28c5b015a38895efe3392df (patch)
treeb34d4cdb3ad8a27c99385a1c1a68cf2c2fc6d423 /usr.bin/ssh/kexecdhs.c
parent9480debea37ac22aede40ebf0f2ca9f6191ad797 (diff)
Introduce digest API and use it to perform all hashing operations
rather than calling OpenSSL EVP_Digest* directly. Will make it easier to build a reduced-feature OpenSSH without OpenSSL in future; feedback, ok markus@
Diffstat (limited to 'usr.bin/ssh/kexecdhs.c')
-rw-r--r--usr.bin/ssh/kexecdhs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexecdhs.c b/usr.bin/ssh/kexecdhs.c
index b16cce949b2..334276275fb 100644
--- a/usr.bin/ssh/kexecdhs.c
+++ b/usr.bin/ssh/kexecdhs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexecdhs.c,v 1.7 2013/11/02 22:24:24 markus Exp $ */
+/* $OpenBSD: kexecdhs.c,v 1.8 2014/01/09 23:20:00 djm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -105,7 +105,7 @@ kexecdh_server(Kex *kex)
/* calc H */
key_to_blob(server_host_public, &server_host_key_blob, &sbloblen);
kex_ecdh_hash(
- kex->evp_md,
+ kex->hash_alg,
group,
kex->client_version_string,
kex->server_version_string,