summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index 65fb31d2e..ee9369638 100644
--- a/packet.c
+++ b/packet.c
@@ -259,6 +259,7 @@ packet_get_keyiv_len(int mode)
259 259
260 return (cipher_get_keyiv_len(cc)); 260 return (cipher_get_keyiv_len(cc));
261} 261}
262
262void 263void
263packet_set_iv(int mode, u_char *dat) 264packet_set_iv(int mode, u_char *dat)
264{ 265{
@@ -271,6 +272,7 @@ packet_set_iv(int mode, u_char *dat)
271 272
272 cipher_set_keyiv(cc, dat); 273 cipher_set_keyiv(cc, dat);
273} 274}
275
274int 276int
275packet_get_ssh1_cipher(void) 277packet_get_ssh1_cipher(void)
276{ 278{
@@ -472,31 +474,37 @@ packet_put_char(int value)
472 474
473 buffer_append(&outgoing_packet, &ch, 1); 475 buffer_append(&outgoing_packet, &ch, 1);
474} 476}
477
475void 478void
476packet_put_int(u_int value) 479packet_put_int(u_int value)
477{ 480{
478 buffer_put_int(&outgoing_packet, value); 481 buffer_put_int(&outgoing_packet, value);
479} 482}
483
480void 484void
481packet_put_string(const void *buf, u_int len) 485packet_put_string(const void *buf, u_int len)
482{ 486{
483 buffer_put_string(&outgoing_packet, buf, len); 487 buffer_put_string(&outgoing_packet, buf, len);
484} 488}
489
485void 490void
486packet_put_cstring(const char *str) 491packet_put_cstring(const char *str)
487{ 492{
488 buffer_put_cstring(&outgoing_packet, str); 493 buffer_put_cstring(&outgoing_packet, str);
489} 494}
495
490void 496void
491packet_put_raw(const void *buf, u_int len) 497packet_put_raw(const void *buf, u_int len)
492{ 498{
493 buffer_append(&outgoing_packet, buf, len); 499 buffer_append(&outgoing_packet, buf, len);
494} 500}
501
495void 502void
496packet_put_bignum(BIGNUM * value) 503packet_put_bignum(BIGNUM * value)
497{ 504{
498 buffer_put_bignum(&outgoing_packet, value); 505 buffer_put_bignum(&outgoing_packet, value);
499} 506}
507
500void 508void
501packet_put_bignum2(BIGNUM * value) 509packet_put_bignum2(BIGNUM * value)
502{ 510{