From 17c03005d8b0d49f518e11ac7bf38b986cf56019 Mon Sep 17 00:00:00 2001 From: Jon Simons Date: Sun, 29 Oct 2017 16:27:02 +0100 Subject: ecdh: fix build for old libgcrypt Summary: Fix a typo for old libgcrypt builds `k_length` -> `k_len`. Signed-off-by: Jon Simons Test Plan: * Spotted this last-minute typo bug in local testing. Reviewers: asn Differential Revision: https://bugs.libssh.org/D10 --- src/ecdh_gcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ecdh_gcrypt.c b/src/ecdh_gcrypt.c index f7430800..e4b73dc2 100644 --- a/src/ecdh_gcrypt.c +++ b/src/ecdh_gcrypt.c @@ -214,7 +214,7 @@ int ecdh_build_k(ssh_session session) goto out; } - if (ssh_string_len(s) != k_length) { + if (ssh_string_len(s) != k_len) { ssh_string_burn(s); ssh_string_free(s); goto out; @@ -223,7 +223,7 @@ int ecdh_build_k(ssh_session session) err = gcry_mpi_scan(&session->next_crypto->k, GCRYMPI_FMT_USG, (const char *)ssh_string_data(s) + 1, - k_length / 2, + k_len / 2, NULL); ssh_string_burn(s); ssh_string_free(s); -- cgit v1.2.1