diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 | |||
262 | void | 263 | void |
263 | packet_set_iv(int mode, u_char *dat) | 264 | packet_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 | |||
274 | int | 276 | int |
275 | packet_get_ssh1_cipher(void) | 277 | packet_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 | |||
475 | void | 478 | void |
476 | packet_put_int(u_int value) | 479 | packet_put_int(u_int value) |
477 | { | 480 | { |
478 | buffer_put_int(&outgoing_packet, value); | 481 | buffer_put_int(&outgoing_packet, value); |
479 | } | 482 | } |
483 | |||
480 | void | 484 | void |
481 | packet_put_string(const void *buf, u_int len) | 485 | packet_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 | |||
485 | void | 490 | void |
486 | packet_put_cstring(const char *str) | 491 | packet_put_cstring(const char *str) |
487 | { | 492 | { |
488 | buffer_put_cstring(&outgoing_packet, str); | 493 | buffer_put_cstring(&outgoing_packet, str); |
489 | } | 494 | } |
495 | |||
490 | void | 496 | void |
491 | packet_put_raw(const void *buf, u_int len) | 497 | packet_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 | |||
495 | void | 502 | void |
496 | packet_put_bignum(BIGNUM * value) | 503 | packet_put_bignum(BIGNUM * value) |
497 | { | 504 | { |
498 | buffer_put_bignum(&outgoing_packet, value); | 505 | buffer_put_bignum(&outgoing_packet, value); |
499 | } | 506 | } |
507 | |||
500 | void | 508 | void |
501 | packet_put_bignum2(BIGNUM * value) | 509 | packet_put_bignum2(BIGNUM * value) |
502 | { | 510 | { |