diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-08 00:10:57 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-08 00:10:57 +0800 |
commit | c797c1750c46d2e111874e31adf5627b24e97462 (patch) | |
tree | 1bfe63d0c11cdb563a4952f7f4617d22111efabb /cli-authpubkey.c | |
parent | c6bdc810abab5b58aba26a7618c49f3dac58ebd6 (diff) |
- Fix various hardcoded uses of SHA1
- rename curves to nistp256 etc
- fix svr-auth.c TRACE problem
--HG--
branch : ecc
Diffstat (limited to 'cli-authpubkey.c')
-rw-r--r-- | cli-authpubkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-authpubkey.c b/cli-authpubkey.c index 96eee05..9fcc256 100644 --- a/cli-authpubkey.c +++ b/cli-authpubkey.c @@ -169,7 +169,7 @@ static void send_msg_userauth_pubkey(sign_key *key, int type, int realsign) { TRACE(("realsign")) /* We put the signature as well - this contains string(session id), then * the contents of the write payload to this point */ - sigbuf = buf_new(4 + SHA1_HASH_SIZE + ses.writepayload->len); + sigbuf = buf_new(4 + ses.session_id->len + ses.writepayload->len); buf_putbufstring(sigbuf, ses.session_id); buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len); cli_buf_put_sign(ses.writepayload, key, type, sigbuf); |