| H A D | packet.c | 13 * called by a name other than "ssh" or "Secure Shell". 95 #include "ssh.h" 229 struct ssh * 232 struct ssh *ssh = NULL; in ssh_alloc_session_state() 235 if ((ssh = calloc(1, sizeof(*ssh))) == NULL || in ssh_alloc_session_state() 237 (ssh->kex = kex_new()) == NULL || in ssh_alloc_session_state() 244 TAILQ_INIT(&ssh->private_keys); in ssh_alloc_session_state() 245 TAILQ_INIT(&ssh in ssh_alloc_session_state() 233 struct ssh *ssh = NULL; ssh_alloc_session_state() local 276 ssh_packet_set_input_hook(struct ssh * ssh,ssh_packet_hook_fn * hook,void * ctx) ssh_packet_set_input_hook() argument 284 ssh_packet_is_rekeying(struct ssh * ssh) ssh_packet_is_rekeying() argument 294 ssh_packet_set_connection(struct ssh * ssh,int fd_in,int fd_out) ssh_packet_set_connection() argument 331 ssh_packet_set_timeout(struct ssh * ssh,int timeout,int count) ssh_packet_set_timeout() argument 346 ssh_packet_set_mux(struct ssh * ssh) ssh_packet_set_mux() argument 355 ssh_packet_get_mux(struct ssh * ssh) ssh_packet_get_mux() argument 361 ssh_packet_set_log_preamble(struct ssh * ssh,const char * fmt,...) ssh_packet_set_log_preamble() argument 380 ssh_packet_stop_discard(struct ssh * ssh) ssh_packet_stop_discard() argument 407 ssh_packet_start_discard(struct ssh * ssh,struct sshenc * enc,struct sshmac * mac,size_t mac_already,u_int discard) ssh_packet_start_discard() argument 435 ssh_packet_connection_is_on_socket(struct ssh * ssh) ssh_packet_connection_is_on_socket() argument 468 ssh_packet_get_bytes(struct ssh * ssh,u_int64_t * ibytes,u_int64_t * obytes) ssh_packet_get_bytes() argument 477 ssh_packet_connection_af(struct ssh * ssh) ssh_packet_connection_af() argument 485 ssh_packet_set_nonblocking(struct ssh * ssh) ssh_packet_set_nonblocking() argument 497 ssh_packet_get_connection_in(struct ssh * ssh) ssh_packet_get_connection_in() argument 505 ssh_packet_get_connection_out(struct ssh * ssh) ssh_packet_get_connection_out() argument 516 ssh_remote_ipaddr(struct ssh * ssh) ssh_remote_ipaddr() argument 548 ssh_remote_hostname(struct ssh * ssh) ssh_remote_hostname() argument 633 ssh_remote_port(struct ssh * ssh) ssh_remote_port() argument 645 ssh_local_ipaddr(struct ssh * ssh) ssh_local_ipaddr() argument 654 ssh_local_port(struct ssh * ssh) ssh_local_port() argument 662 ssh_packet_rdomain_in(struct ssh * ssh) ssh_packet_rdomain_in() argument 675 ssh_packet_close_internal(struct ssh * ssh,int do_close) ssh_packet_close_internal() argument 744 ssh_packet_close(struct ssh * ssh) ssh_packet_close() argument 750 ssh_packet_clear_keys(struct ssh * ssh) ssh_packet_clear_keys() argument 758 ssh_packet_set_protocol_flags(struct ssh * ssh,u_int protocol_flags) ssh_packet_set_protocol_flags() argument 766 ssh_packet_get_protocol_flags(struct ssh * ssh) ssh_packet_get_protocol_flags() argument 777 ssh_packet_init_compression(struct ssh * ssh) ssh_packet_init_compression() argument 787 start_compression_out(struct ssh * ssh,int level) start_compression_out() argument 807 start_compression_in(struct ssh * ssh) start_compression_in() argument 825 compress_buffer(struct ssh * ssh,struct sshbuf * in,struct sshbuf * out) compress_buffer() argument 871 uncompress_buffer(struct ssh * ssh,struct sshbuf * in,struct sshbuf * out) uncompress_buffer() argument 920 start_compression_out(struct ssh * ssh,int level) start_compression_out() argument 926 start_compression_in(struct ssh * ssh) start_compression_in() argument 932 compress_buffer(struct ssh * ssh,struct sshbuf * in,struct sshbuf * out) compress_buffer() argument 938 uncompress_buffer(struct ssh * ssh,struct sshbuf * in,struct sshbuf * out) uncompress_buffer() argument 945 ssh_clear_newkeys(struct ssh * ssh,int mode) ssh_clear_newkeys() argument 954 ssh_set_newkeys(struct ssh * ssh,int mode) ssh_set_newkeys() argument 1051 ssh_packet_need_rekeying(struct ssh * ssh,u_int outbound_packet_len) ssh_packet_need_rekeying() argument 1098 ssh_packet_check_rekey(struct ssh * ssh) ssh_packet_check_rekey() argument 1112 ssh_packet_enable_delayed_compress(struct ssh * ssh) ssh_packet_enable_delayed_compress() argument 1164 ssh_packet_send2_wrapped(struct ssh * ssh) ssh_packet_send2_wrapped() argument 1344 ssh_packet_send2(struct ssh * ssh) ssh_packet_send2() argument 1428 ssh_packet_read_seqnr(struct ssh * ssh,u_char * typep,u_int32_t * seqnr_p) ssh_packet_read_seqnr() argument 1510 ssh_packet_read(struct ssh * ssh) ssh_packet_read() argument 1521 ssh_packet_read_poll2_mux(struct ssh * ssh,u_char * typep,u_int32_t * seqnr_p) ssh_packet_read_poll2_mux() argument 1559 ssh_packet_read_poll2(struct ssh * ssh,u_char * typep,u_int32_t * seqnr_p) ssh_packet_read_poll2() argument 1797 ssh_packet_read_poll_seqnr(struct ssh * ssh,u_char * typep,u_int32_t * seqnr_p) ssh_packet_read_poll_seqnr() argument 1898 ssh_packet_process_incoming(struct ssh * ssh,const char * buf,u_int len) ssh_packet_process_incoming() argument 1920 ssh_packet_process_read(struct ssh * ssh,int fd) ssh_packet_process_read() argument 1944 ssh_packet_remaining(struct ssh * ssh) ssh_packet_remaining() argument 1958 ssh_packet_send_debug(struct ssh * ssh,const char * fmt,...) ssh_packet_send_debug() argument 1983 sshpkt_fmt_connection_id(struct ssh * ssh,char * s,size_t l) sshpkt_fmt_connection_id() argument 1995 sshpkt_vfatal(struct ssh * ssh,int r,const char * fmt,va_list ap) sshpkt_vfatal() argument 2047 sshpkt_fatal(struct ssh * ssh,int r,const char * fmt,...) sshpkt_fatal() argument 2065 ssh_packet_disconnect(struct ssh * ssh,const char * fmt,...) ssh_packet_disconnect() argument 2108 ssh_packet_write_poll(struct ssh * ssh) ssh_packet_write_poll() argument 2136 ssh_packet_write_wait(struct ssh * ssh) ssh_packet_write_wait() argument 2183 ssh_packet_have_data_to_write(struct ssh * ssh) ssh_packet_have_data_to_write() argument 2191 ssh_packet_not_very_much_data_to_write(struct ssh * ssh) ssh_packet_not_very_much_data_to_write() argument 2205 ssh_packet_interactive_data_to_write(struct ssh * ssh) ssh_packet_interactive_data_to_write() argument 2212 ssh_packet_set_tos(struct ssh * ssh,int tos) ssh_packet_set_tos() argument 2222 ssh_packet_set_interactive(struct ssh * ssh,int interactive,int qos_interactive,int qos_bulk) ssh_packet_set_interactive() argument 2243 ssh_packet_is_interactive(struct ssh * ssh) ssh_packet_is_interactive() argument 2249 ssh_packet_set_maxsize(struct ssh * ssh,u_int s) ssh_packet_set_maxsize() argument 2269 ssh_packet_inc_alive_timeouts(struct ssh * ssh) ssh_packet_inc_alive_timeouts() argument 2275 ssh_packet_set_alive_timeouts(struct ssh * ssh,int ka) ssh_packet_set_alive_timeouts() argument 2281 ssh_packet_get_maxsize(struct ssh * ssh) ssh_packet_get_maxsize() argument 2287 ssh_packet_set_rekey_limits(struct ssh * ssh,u_int64_t bytes,u_int32_t seconds) ssh_packet_set_rekey_limits() argument 2296 ssh_packet_get_rekey_timeout(struct ssh * ssh) ssh_packet_get_rekey_timeout() argument 2306 ssh_packet_set_server(struct ssh * ssh) ssh_packet_set_server() argument 2313 ssh_packet_set_authenticated(struct ssh * ssh) ssh_packet_set_authenticated() argument 2319 ssh_packet_get_input(struct ssh * ssh) ssh_packet_get_input() argument 2325 ssh_packet_get_output(struct ssh * ssh) ssh_packet_get_output() argument 2332 ssh_packet_set_postauth(struct ssh * ssh) ssh_packet_set_postauth() argument 2371 newkeys_to_blob(struct sshbuf * m,struct ssh * ssh,int mode) newkeys_to_blob() argument 2415 ssh_packet_get_state(struct ssh * ssh,struct sshbuf * m) ssh_packet_get_state() argument 2442 newkeys_from_blob(struct sshbuf * m,struct ssh * ssh,int mode) newkeys_from_blob() argument 2549 ssh_packet_set_state(struct ssh * ssh,struct sshbuf * m) ssh_packet_set_state() argument 2602 sshpkt_put(struct ssh * ssh,const void * v,size_t len) sshpkt_put() argument 2608 sshpkt_putb(struct ssh * ssh,const struct sshbuf * b) sshpkt_putb() argument 2614 sshpkt_put_u8(struct ssh * ssh,u_char val) sshpkt_put_u8() argument 2620 sshpkt_put_u32(struct ssh * ssh,u_int32_t val) sshpkt_put_u32() argument 2626 sshpkt_put_u64(struct ssh * ssh,u_int64_t val) sshpkt_put_u64() argument 2632 sshpkt_put_string(struct ssh * ssh,const void * v,size_t len) sshpkt_put_string() argument 2638 sshpkt_put_cstring(struct ssh * ssh,const void * v) sshpkt_put_cstring() argument 2644 sshpkt_put_stringb(struct ssh * ssh,const struct sshbuf * v) sshpkt_put_stringb() argument 2652 sshpkt_put_ec(struct ssh * ssh,const EC_POINT * v,const EC_GROUP * g) sshpkt_put_ec() argument 2658 sshpkt_put_ec_pkey(struct ssh * ssh,EVP_PKEY * pkey) sshpkt_put_ec_pkey() argument 2665 sshpkt_put_bignum2(struct ssh * ssh,const BIGNUM * v) sshpkt_put_bignum2() argument 2674 sshpkt_get(struct ssh * ssh,void * valp,size_t len) sshpkt_get() argument 2680 sshpkt_get_u8(struct ssh * ssh,u_char * valp) sshpkt_get_u8() argument 2686 sshpkt_get_u32(struct ssh * ssh,u_int32_t * valp) sshpkt_get_u32() argument 2692 sshpkt_get_u64(struct ssh * ssh,u_int64_t * valp) sshpkt_get_u64() argument 2698 sshpkt_get_string(struct ssh * ssh,u_char ** valp,size_t * lenp) sshpkt_get_string() argument 2704 sshpkt_get_string_direct(struct ssh * ssh,const u_char ** valp,size_t * lenp) sshpkt_get_string_direct() argument 2710 sshpkt_peek_string_direct(struct ssh * ssh,const u_char ** valp,size_t * lenp) sshpkt_peek_string_direct() argument 2716 sshpkt_get_cstring(struct ssh * ssh,char ** valp,size_t * lenp) sshpkt_get_cstring() argument 2722 sshpkt_getb_froms(struct ssh * ssh,struct sshbuf ** valp) sshpkt_getb_froms() argument 2730 sshpkt_get_ec(struct ssh * ssh,EC_POINT * v,const EC_GROUP * g) sshpkt_get_ec() argument 2737 sshpkt_get_bignum2(struct ssh * ssh,BIGNUM ** valp) sshpkt_get_bignum2() argument 2744 sshpkt_get_end(struct ssh * ssh) sshpkt_get_end() argument 2752 sshpkt_ptr(struct ssh * ssh,size_t * lenp) sshpkt_ptr() argument 2762 sshpkt_start(struct ssh * ssh,u_char type) sshpkt_start() argument 2774 ssh_packet_send_mux(struct ssh * ssh) ssh_packet_send_mux() argument 2815 sshpkt_msg_ignore(struct ssh * ssh,u_int nbytes) sshpkt_msg_ignore() argument 2837 sshpkt_send(struct ssh * ssh) sshpkt_send() argument 2845 sshpkt_disconnect(struct ssh * ssh,const char * fmt,...) sshpkt_disconnect() argument 2867 sshpkt_add_padding(struct ssh * ssh,u_char pad) sshpkt_add_padding() argument [all...] |