aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-09-25 12:56:19 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-09-25 23:47:55 +0200
commitb6d0b531f81f271c963ece3f540403ad1499468f (patch)
tree89f556cfcb9022aed4092d64bc68d828c3271b96
parent5c19cda28031e541ffd47d300a630c99f0425594 (diff)
downloadlibssh-b6d0b531f81f271c963ece3f540403ad1499468f.tar.gz
libssh-b6d0b531f81f271c963ece3f540403ad1499468f.tar.xz
libssh-b6d0b531f81f271c963ece3f540403ad1499468f.zip
server: pubkey auth doesn't work with ecdh
-rw-r--r--src/messages.c4
1 files 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);