version 1.124, 2006/03/20 17:10:19 |
version 1.125, 2006/03/20 18:48:34 |
|
|
|
|
return (cipher_get_keyiv_len(cc)); |
return (cipher_get_keyiv_len(cc)); |
} |
} |
|
|
void |
void |
packet_set_iv(int mode, u_char *dat) |
packet_set_iv(int mode, u_char *dat) |
{ |
{ |
|
|
|
|
cipher_set_keyiv(cc, dat); |
cipher_set_keyiv(cc, dat); |
} |
} |
|
|
int |
int |
packet_get_ssh1_cipher(void) |
packet_get_ssh1_cipher(void) |
{ |
{ |
|
|
|
|
buffer_append(&outgoing_packet, &ch, 1); |
buffer_append(&outgoing_packet, &ch, 1); |
} |
} |
|
|
void |
void |
packet_put_int(u_int value) |
packet_put_int(u_int value) |
{ |
{ |
buffer_put_int(&outgoing_packet, value); |
buffer_put_int(&outgoing_packet, value); |
} |
} |
|
|
void |
void |
packet_put_string(const void *buf, u_int len) |
packet_put_string(const void *buf, u_int len) |
{ |
{ |
buffer_put_string(&outgoing_packet, buf, len); |
buffer_put_string(&outgoing_packet, buf, len); |
} |
} |
|
|
void |
void |
packet_put_cstring(const char *str) |
packet_put_cstring(const char *str) |
{ |
{ |
buffer_put_cstring(&outgoing_packet, str); |
buffer_put_cstring(&outgoing_packet, str); |
} |
} |
|
|
void |
void |
packet_put_raw(const void *buf, u_int len) |
packet_put_raw(const void *buf, u_int len) |
{ |
{ |
buffer_append(&outgoing_packet, buf, len); |
buffer_append(&outgoing_packet, buf, len); |
} |
} |
|
|
void |
void |
packet_put_bignum(BIGNUM * value) |
packet_put_bignum(BIGNUM * value) |
{ |
{ |
buffer_put_bignum(&outgoing_packet, value); |
buffer_put_bignum(&outgoing_packet, value); |
} |
} |
|
|
void |
void |
packet_put_bignum2(BIGNUM * value) |
packet_put_bignum2(BIGNUM * value) |
{ |
{ |