comparison cli-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 0da8ba489c23
comparison
equal deleted inserted replaced
761:ac2158e3e403 762:a78a38e402d1
167 167
168 if (realsign) { 168 if (realsign) {
169 TRACE(("realsign")) 169 TRACE(("realsign"))
170 /* We put the signature as well - this contains string(session id), then 170 /* We put the signature as well - this contains string(session id), then
171 * the contents of the write payload to this point */ 171 * the contents of the write payload to this point */
172 sigbuf = buf_new(4 + SHA1_HASH_SIZE + ses.writepayload->len); 172 sigbuf = buf_new(4 + ses.session_id->len + ses.writepayload->len);
173 buf_putbufstring(sigbuf, ses.session_id); 173 buf_putbufstring(sigbuf, ses.session_id);
174 buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len); 174 buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len);
175 cli_buf_put_sign(ses.writepayload, key, type, sigbuf); 175 cli_buf_put_sign(ses.writepayload, key, type, sigbuf);
176 buf_free(sigbuf); /* Nothing confidential in the buffer */ 176 buf_free(sigbuf); /* Nothing confidential in the buffer */
177 } 177 }