comparison cli-authpubkey.c @ 761:ac2158e3e403 ecc

ecc kind of works, needs fixing/testing
author Matt Johnston <matt@ucc.asn.au>
date Sun, 07 Apr 2013 01:36:42 +0800
parents f336d232fc63
children a78a38e402d1
comparison
equal deleted inserted replaced
760:f336d232fc63 761:ac2158e3e403
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 + SHA1_HASH_SIZE + 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->data, sigbuf->len); 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 }
178 178
179 encrypt_packet(); 179 encrypt_packet();
180 TRACE(("leave send_msg_userauth_pubkey")) 180 TRACE(("leave send_msg_userauth_pubkey"))