From b6d0b531f81f271c963ece3f540403ad1499468f Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 25 Sep 2011 12:56:19 +0200 Subject: [PATCH] server: pubkey auth doesn't work with ecdh --- src/messages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messages.c b/src/messages.c index 217d9101..9a28d9b7 100644 --- a/src/messages.c +++ b/src/messages.c @@ -346,12 +346,12 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session, } /* Add session id */ - str = ssh_string_new(SHA_DIGEST_LEN); + str = ssh_string_new(crypto->digest_len); if (str == NULL) { ssh_buffer_free(buffer); return NULL; } - ssh_string_fill(str, crypto->session_id, SHA_DIGEST_LEN); + ssh_string_fill(str, crypto->session_id, crypto->digest_len); rc = buffer_add_ssh_string(buffer, str); string_free(str);