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 /svr-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 'svr-authpubkey.c')
-rw-r--r-- | svr-authpubkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-authpubkey.c b/svr-authpubkey.c index 1c5f9d6..e0727de 100644 --- a/svr-authpubkey.c +++ b/svr-authpubkey.c @@ -125,7 +125,7 @@ void svr_auth_pubkey() { /* create the data which has been signed - this a string containing * session_id, concatenated with the payload packet up to the signature */ - signbuf = buf_new(ses.payload->pos + 4 + SHA1_HASH_SIZE); + signbuf = buf_new(ses.payload->pos + 4 + ses.session_id->len); buf_putbufstring(signbuf, ses.session_id); buf_putbytes(signbuf, ses.payload->data, ses.payload->pos); buf_setpos(signbuf, 0); |