ecc kind of works, needs fixing/testing

--HG--
branch : ecc
This commit is contained in:
Matt Johnston
2013-04-07 01:36:42 +08:00
parent a8135dec1e
commit c6bdc810ab
32 changed files with 174 additions and 120 deletions

View File

@@ -172,7 +172,7 @@ static void send_msg_userauth_pubkey(sign_key *key, int type, int realsign) {
sigbuf = buf_new(4 + SHA1_HASH_SIZE + 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->data, sigbuf->len);
cli_buf_put_sign(ses.writepayload, key, type, sigbuf);
buf_free(sigbuf); /* Nothing confidential in the buffer */
}