diff options
author | Jon Simons <jon@jonsimons.org> | 2017-10-29 16:27:02 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-10-29 16:28:39 +0100 |
commit | d29d199592717e215278cb28370372d3a72799eb (patch) | |
tree | d104bf4fbd41838535fa02870d68fabb4b8c3a2c | |
parent | 509fa8a7b25eeb2b0f62ca158876603d96b49481 (diff) | |
parent | 17c03005d8b0d49f518e11ac7bf38b986cf56019 (diff) | |
download | libssh-d29d199592717e215278cb28370372d3a72799eb.tar.gz libssh-d29d199592717e215278cb28370372d3a72799eb.tar.xz libssh-d29d199592717e215278cb28370372d3a72799eb.zip |
ecdh: fix build for old libgcrypt
Summary:
Fix a typo for old libgcrypt builds `k_length` -> `k_len`.
Signed-off-by: Jon Simons <jon@jonsimons.org>
Test Plan: * Spotted this last-minute typo bug in local testing.
Reviewers: asn
Reviewed By: asn
Differential Revision: https://bugs.libssh.org/D10
-rw-r--r-- | src/ecdh_gcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |