diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-25 12:56:19 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-25 23:47:55 +0200 |
commit | b6d0b531f81f271c963ece3f540403ad1499468f (patch) | |
tree | 89f556cfcb9022aed4092d64bc68d828c3271b96 | |
parent | 5c19cda28031e541ffd47d300a630c99f0425594 (diff) | |
download | libssh-b6d0b531f81f271c963ece3f540403ad1499468f.tar.gz libssh-b6d0b531f81f271c963ece3f540403ad1499468f.tar.xz libssh-b6d0b531f81f271c963ece3f540403ad1499468f.zip |
server: pubkey auth doesn't work with ecdh
-rw-r--r-- | src/messages.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c index 217d910..9a28d9b 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); |