H A D | packet.c | 13 * called by a name other than "ssh" or "Secure Shell". 84 #include "ssh.h" 223 struct ssh * 226 struct ssh *ssh = NULL; local 229 if ((ssh = calloc(1, sizeof(*ssh))) == NULL || 237 TAILQ_INIT(&ssh->private_keys); 238 TAILQ_INIT(&ssh->public_keys); 250 ssh 269 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) argument 307 ssh_packet_set_timeout(struct ssh *ssh, int timeout, int count) argument 322 ssh_packet_stop_discard(struct ssh *ssh) argument 346 ssh_packet_start_discard(struct ssh *ssh, struct sshenc *enc, struct sshmac *mac, u_int packet_length, u_int discard) argument 369 ssh_packet_connection_is_on_socket(struct ssh *ssh) argument 396 ssh_packet_get_bytes(struct ssh *ssh, u_int64_t *ibytes, u_int64_t *obytes) argument 405 ssh_packet_connection_af(struct ssh *ssh) argument 425 ssh_packet_set_nonblocking(struct ssh *ssh) argument 437 ssh_packet_get_connection_in(struct ssh *ssh) argument 445 ssh_packet_get_connection_out(struct ssh *ssh) argument 456 ssh_remote_ipaddr(struct ssh *ssh) argument 471 ssh_packet_close(struct ssh *ssh) argument 533 ssh_packet_set_protocol_flags(struct ssh *ssh, u_int protocol_flags) argument 541 ssh_packet_get_protocol_flags(struct ssh *ssh) argument 552 ssh_packet_init_compression(struct ssh *ssh) argument 561 start_compression_out(struct ssh *ssh, int level) argument 581 start_compression_in(struct ssh *ssh) argument 598 ssh_packet_start_compression(struct ssh *ssh, int level) argument 614 compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) argument 660 uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) argument 708 ssh_packet_get_compress_state(struct sshbuf *m, struct ssh *ssh) argument 736 ssh_packet_set_compress_state(struct ssh *ssh, struct sshbuf *m) argument 774 ssh_packet_set_compress_hooks(struct ssh *ssh, void *ctx, void *(*allocfunc)(void *, u_int, u_int), void (*freefunc)(void *, void *)) argument 793 ssh_packet_set_encryption_key(struct ssh *ssh, const u_char *key, u_int keylen, int number) argument 831 ssh_packet_send1(struct ssh *ssh) argument 919 ssh_set_newkeys(struct ssh *ssh, int mode) argument 1021 ssh_packet_enable_delayed_compress(struct ssh *ssh) argument 1057 ssh_packet_send2_wrapped(struct ssh *ssh) argument 1204 ssh_packet_send2(struct ssh *ssh) argument 1265 ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument 1362 ssh_packet_read(struct ssh *ssh) argument 1378 ssh_packet_read_expect(struct ssh *ssh, u_int expected_type) argument 1405 ssh_packet_read_poll1(struct ssh *ssh, u_char *typep) argument 1543 ssh_packet_read_poll2(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument 1761 ssh_packet_read_poll_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument 1848 ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len) argument 1869 ssh_packet_remaining(struct ssh *ssh) argument 1883 ssh_packet_send_debug(struct ssh *ssh, const char *fmt,...) argument 1917 sshpkt_fatal(struct ssh *ssh, const char *tag, int r) argument 1962 ssh_packet_disconnect(struct ssh *ssh, const char *fmt,...) argument 2004 ssh_packet_write_poll(struct ssh *ssh) argument 2033 ssh_packet_write_wait(struct ssh *ssh) argument 2089 ssh_packet_have_data_to_write(struct ssh *ssh) argument 2097 ssh_packet_not_very_much_data_to_write(struct ssh *ssh) argument 2106 ssh_packet_set_tos(struct ssh *ssh, int tos) argument 2137 ssh_packet_set_interactive(struct ssh *ssh, int interactive, int qos_interactive, int qos_bulk) argument 2159 ssh_packet_is_interactive(struct ssh *ssh) argument 2165 ssh_packet_set_maxsize(struct ssh *ssh, u_int s) argument 2185 ssh_packet_inc_alive_timeouts(struct ssh *ssh) argument 2191 ssh_packet_set_alive_timeouts(struct ssh *ssh, int ka) argument 2197 ssh_packet_get_maxsize(struct ssh *ssh) argument 2214 ssh_packet_send_ignore(struct ssh *ssh, int nbytes) argument 2234 ssh_packet_need_rekeying(struct ssh *ssh) argument 2252 ssh_packet_set_rekey_limits(struct ssh *ssh, u_int32_t bytes, time_t seconds) argument 2261 ssh_packet_get_rekey_timeout(struct ssh *ssh) argument 2271 ssh_packet_set_server(struct ssh *ssh) argument 2277 ssh_packet_set_authenticated(struct ssh *ssh) argument 2283 ssh_packet_get_input(struct ssh *ssh) argument 2289 ssh_packet_get_output(struct ssh *ssh) argument 2300 ssh_packet_backup_state(struct ssh *ssh, struct ssh *backup_state) argument 2322 ssh_packet_restore_state(struct ssh *ssh, struct ssh *backup_state) argument 2348 ssh_packet_set_postauth(struct ssh *ssh) argument 2392 newkeys_to_blob(struct sshbuf *m, struct ssh *ssh, int mode) argument 2440 ssh_packet_get_state(struct ssh *ssh, struct sshbuf *m) argument 2506 newkeys_from_blob(struct sshbuf *m, struct ssh *ssh, int mode) argument 2624 ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m) argument 2713 sshpkt_put(struct ssh *ssh, const void *v, size_t len) argument 2719 sshpkt_putb(struct ssh *ssh, const struct sshbuf *b) argument 2725 sshpkt_put_u8(struct ssh *ssh, u_char val) argument 2731 sshpkt_put_u32(struct ssh *ssh, u_int32_t val) argument 2737 sshpkt_put_u64(struct ssh *ssh, u_int64_t val) argument 2743 sshpkt_put_string(struct ssh *ssh, const void *v, size_t len) argument 2749 sshpkt_put_cstring(struct ssh *ssh, const void *v) argument 2755 sshpkt_put_stringb(struct ssh *ssh, const struct sshbuf *v) argument 2763 sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g) argument 2771 sshpkt_put_bignum1(struct ssh *ssh, const BIGNUM *v) argument 2778 sshpkt_put_bignum2(struct ssh *ssh, const BIGNUM *v) argument 2787 sshpkt_get(struct ssh *ssh, void *valp, size_t len) argument 2793 sshpkt_get_u8(struct ssh *ssh, u_char *valp) argument 2799 sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp) argument 2805 sshpkt_get_u64(struct ssh *ssh, u_int64_t *valp) argument 2811 sshpkt_get_string(struct ssh *ssh, u_char **valp, size_t *lenp) argument 2817 sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp) argument 2823 sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp) argument 2831 sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g) argument 2839 sshpkt_get_bignum1(struct ssh *ssh, BIGNUM *v) argument 2846 sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v) argument 2853 sshpkt_get_end(struct ssh *ssh) argument 2861 sshpkt_ptr(struct ssh *ssh, size_t *lenp) argument 2871 sshpkt_start(struct ssh *ssh, u_char type) argument 2887 sshpkt_send(struct ssh *ssh) argument 2896 sshpkt_disconnect(struct ssh *ssh, const char *fmt,...) argument 2924 sshpkt_add_padding(struct ssh *ssh, u_char pad) argument [all...] |