comparison svr-authpubkey.c @ 762:a78a38e402d1 ecc

- Fix various hardcoded uses of SHA1 - rename curves to nistp256 etc - fix svr-auth.c TRACE problem
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Apr 2013 00:10:57 +0800
parents ac2158e3e403
children 7540c0822374
comparison
equal deleted inserted replaced
761:ac2158e3e403 762:a78a38e402d1
123 goto out; 123 goto out;
124 } 124 }
125 125
126 /* create the data which has been signed - this a string containing 126 /* create the data which has been signed - this a string containing
127 * session_id, concatenated with the payload packet up to the signature */ 127 * session_id, concatenated with the payload packet up to the signature */
128 signbuf = buf_new(ses.payload->pos + 4 + SHA1_HASH_SIZE); 128 signbuf = buf_new(ses.payload->pos + 4 + ses.session_id->len);
129 buf_putbufstring(signbuf, ses.session_id); 129 buf_putbufstring(signbuf, ses.session_id);
130 buf_putbytes(signbuf, ses.payload->data, ses.payload->pos); 130 buf_putbytes(signbuf, ses.payload->data, ses.payload->pos);
131 buf_setpos(signbuf, 0); 131 buf_setpos(signbuf, 0);
132 132
133 /* ... and finally verify the signature */ 133 /* ... and finally verify the signature */