| /freebsd/crypto/openssh/ |
| H A D | packet.h | 55 struct ssh { struct 57 struct session_state *state; 60 struct kex *kex; 63 char *remote_ipaddr; 64 int remote_port; 88 struct ssh_channels *chanctxt; argument 94 typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *, argument
|
| H A D | nchan.c | 111 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed() 127 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty() 149 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty() 170 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow() 182 chan_send_eof2(struct ssh *ssh, Channel *c) in chan_send_eof2() 205 chan_send_close2(struct ssh *ssh, Channel *c) in chan_send_close2() 230 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2() 255 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof() 268 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose() 308 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed() [all …]
|
| H A D | packet.c | 238 struct ssh *ssh = NULL; in ssh_alloc_session_state() local 283 ssh_packet_set_input_hook(struct ssh *ssh, ssh_packet_hook_fn *hook, void *ctx) in ssh_packet_set_input_hook() 291 ssh_packet_is_rekeying(struct ssh *ssh) in ssh_packet_is_rekeying() 301 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) in ssh_packet_set_connection() 340 ssh_packet_set_timeout(struct ssh *ssh, int timeout, int count) in ssh_packet_set_timeout() 355 ssh_packet_set_mux(struct ssh *ssh) in ssh_packet_set_mux() 364 ssh_packet_get_mux(struct ssh *ssh) in ssh_packet_get_mux() 370 ssh_packet_set_log_preamble(struct ssh *ssh, const char *fmt, ...) in ssh_packet_set_log_preamble() 389 ssh_packet_stop_discard(struct ssh *ssh) in ssh_packet_stop_discard() 416 ssh_packet_start_discard(struct ssh *ssh, struct sshenc *enc, in ssh_packet_start_discard() [all …]
|
| H A D | ssh_api.c | 91 struct ssh *ssh; in ssh_init() local 164 ssh_free(struct ssh *ssh) in ssh_free() 190 ssh_set_app_data(struct ssh *ssh, void *app_data) in ssh_set_app_data() 196 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data() 203 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey() 237 ssh_set_verify_host_key_callback(struct ssh *ssh, in ssh_set_verify_host_key_callback() 249 ssh_input_append(struct ssh *ssh, const u_char *data, size_t len) in ssh_input_append() 255 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next() 296 ssh_packet_payload(struct ssh *ssh, size_t *lenp) in ssh_packet_payload() 302 ssh_packet_put(struct ssh *ssh, int type, const u_char *data, size_t len) in ssh_packet_put() [all …]
|
| H A D | channels.c | 228 channel_init_channels(struct ssh *ssh) in channel_init_channels() 245 channel_by_id(struct ssh *ssh, int id) in channel_by_id() 262 channel_by_remote_id(struct ssh *ssh, u_int remote_id) in channel_by_remote_id() 280 channel_lookup(struct ssh *ssh, int id) in channel_lookup() 309 channel_add_timeout(struct ssh *ssh, const char *type_pattern, in channel_add_timeout() 330 channel_clear_timeouts(struct ssh *ssh) in channel_clear_timeouts() 344 lookup_timeout(struct ssh *ssh, const char *type) in lookup_timeout() 358 channel_classify(struct ssh *ssh, Channel *c) in channel_classify() 379 channel_set_xtype(struct ssh *ssh, int id, const char *xctype) in channel_set_xtype() 400 channel_set_used_time(struct ssh *ssh, Channel *c) in channel_set_used_time() [all …]
|
| H A D | dispatch.c | 40 dispatch_protocol_error(int type, uint32_t seq, struct ssh *ssh) in dispatch_protocol_error() 54 dispatch_protocol_ignore(int type, uint32_t seq, struct ssh *ssh) in dispatch_protocol_ignore() 61 ssh_dispatch_init(struct ssh *ssh, dispatch_fn *dflt) in ssh_dispatch_init() 69 ssh_dispatch_range(struct ssh *ssh, u_int from, u_int to, dispatch_fn *fn) in ssh_dispatch_range() 81 ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn) in ssh_dispatch_set() 87 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run() 128 ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run_fatal()
|
| H A D | serverloop.c | 112 client_alive_check(struct ssh *ssh) in client_alive_check() 150 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something() 267 process_input(struct ssh *ssh, int connection_in) in process_input() 293 process_output(struct ssh *ssh, int connection_out) in process_output() 312 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets() 318 collect_children(struct ssh *ssh) in collect_children() 334 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2() 405 server_input_keep_alive(int type, uint32_t seq, struct ssh *ssh) in server_input_keep_alive() 418 server_request_direct_tcpip(struct ssh *ssh, int *reason, const char **errmsg) in server_request_direct_tcpip() 466 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal() [all …]
|
| H A D | kex.c | 87 kex_proposal_populate_entries(struct ssh *ssh, char *prop[PROPOSAL_MAX], in kex_proposal_populate_entries() 232 kex_protocol_error(int type, uint32_t seq, struct ssh *ssh) in kex_protocol_error() 250 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch() 257 kex_set_server_sig_algs(struct ssh *ssh, const char *allowed_algs) in kex_set_server_sig_algs() 293 kex_compose_ext_info_server(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_server() 317 kex_compose_ext_info_client(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_client() 334 kex_maybe_send_ext_info(struct ssh *ssh) in kex_maybe_send_ext_info() 371 kex_server_update_ext_info(struct ssh *ssh) in kex_server_update_ext_info() 391 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys() 425 kex_ext_info_client_parse(struct ssh *ssh, const char *name, in kex_ext_info_client_parse() [all …]
|
| H A D | monitor.c | 268 monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_preauth() 421 monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_postauth() 505 monitor_read(struct ssh *ssh, struct monitor *pmonitor, struct mon_table *ent, in monitor_read() 603 mm_answer_state(struct ssh *ssh, int sock, struct sshbuf *unused) in mm_answer_state() 665 mm_answer_moduli(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_moduli() 704 mm_answer_setcompat(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_setcompat() 718 mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_sign() 844 mm_answer_pwnamallow(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pwnamallow() 943 int mm_answer_auth2_read_banner(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_auth2_read_banner() 959 mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authserv() [all …]
|
| H A D | session.c | 186 auth_input_request_forwarding(struct ssh *ssh, struct passwd *pw, int agent_new) in auth_input_request_forwarding() 273 set_fwdpermit_from_authopts(struct ssh *ssh, const struct sshauthopt *opts) in set_fwdpermit_from_authopts() 312 do_authenticated(struct ssh *ssh, Authctxt *authctxt) in do_authenticated() 367 do_exec_no_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_no_pty() 533 do_exec_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_pty() 631 do_exec(struct ssh *ssh, Session *s, const char *command) in do_exec() 711 do_login(struct ssh *ssh, Session *s, const char *command) in do_login() 934 do_setup_env(struct ssh *ssh, Session *s, const char *shell) in do_setup_env() 1176 do_rc_files(struct ssh *ssh, Session *s, const char *shell) in do_rc_files() 1442 child_close_fds(struct ssh *ssh) in child_close_fds() [all …]
|
| H A D | clientloop.c | 243 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time() 287 client_x11_get_proto(struct ssh *ssh, const char *display, in client_x11_get_proto() 458 client_check_window_change(struct ssh *ssh) in client_check_window_change() 468 client_global_request_reply(int type, uint32_t seq, struct ssh *ssh) in client_global_request_reply() 493 server_alive_check(struct ssh *ssh) in server_alive_check() 513 send_chaff(struct ssh *ssh) in send_chaff() 574 obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout, in obfuscate_keystroke_timing() 682 client_wait_until_can_do_something(struct ssh *ssh, struct pollfd **pfdp, in client_wait_until_can_do_something() 789 client_process_net_input(struct ssh *ssh) in client_process_net_input() 813 client_status_confirm(struct ssh *ssh, int type, Channel *c, void *ctx) in client_status_confirm() [all …]
|
| H A D | sshconnect2.c | 91 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) in verify_host_key_callback() 219 ssh_kex2(struct ssh *ssh, char *host, struct sockaddr_storage *hostaddr, in ssh_kex2() 426 ssh_userauth2(struct ssh *ssh, const char *local_user, in ssh_userauth2() 494 input_userauth_service_accept(int type, uint32_t seq, struct ssh *ssh) in input_userauth_service_accept() 527 userauth(struct ssh *ssh, char *authlist) in userauth() 565 input_userauth_error(int type, uint32_t seq, struct ssh *ssh) in input_userauth_error() 572 input_userauth_banner(int type, uint32_t seq, struct ssh *ssh) in input_userauth_banner() 591 input_userauth_success(int type, uint32_t seq, struct ssh *ssh) in input_userauth_success() 624 input_userauth_failure(int type, uint32_t seq, struct ssh *ssh) in input_userauth_failure() 684 input_userauth_pk_ok(int type, uint32_t seq, struct ssh *ssh) in input_userauth_pk_ok() [all …]
|
| H A D | auth.c | 98 allowed_user(struct ssh *ssh, struct passwd * pw) in allowed_user() 265 auth_log(struct ssh *ssh, int authenticated, int partial, in auth_log() 336 auth_maxtries_exceeded(struct ssh *ssh) in auth_maxtries_exceeded() 355 auth_root_allowed(struct ssh *ssh, const char *method) in auth_root_allowed() 466 getpwnamallow(struct ssh *ssh, const char *user) in getpwnamallow() 610 auth_debug_send(struct ssh *ssh) in auth_debug_send() 674 auth_get_canonical_hostname(struct ssh *ssh, int use_dns) in auth_get_canonical_hostname() 760 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts) in auth_activate_options() 776 auth_restrict_session(struct ssh *ssh) in auth_restrict_session()
|
| H A D | sshd-session.c | 304 privsep_preauth(struct ssh *ssh) in privsep_preauth() 373 privsep_postauth(struct ssh *ssh, Authctxt *authctxt) in privsep_postauth() 431 get_hostkey_by_type(int type, int nid, int need_private, struct ssh *ssh) in get_hostkey_by_type() 471 get_hostkey_public_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_public_by_type() 477 get_hostkey_private_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_private_by_type() 491 get_hostkey_public_by_index(int ind, struct ssh *ssh) in get_hostkey_public_by_index() 499 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh) in get_hostkey_index() 526 notify_hostkeys(struct ssh *ssh) in notify_hostkeys() 712 check_ip_options(struct ssh *ssh) in check_ip_options() 743 set_process_rdomain(struct ssh *ssh, const char *name) in set_process_rdomain() [all …]
|
| H A D | sshd-auth.c | 288 get_hostkey_public_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_public_by_type() 326 get_hostkey_private_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_private_by_type() 339 get_hostkey_public_by_index(int ind, struct ssh *ssh) in get_hostkey_public_by_index() 347 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh) in get_hostkey_index() 419 recv_privsep_state(struct ssh *ssh, ServerOptions *o, uint64_t *timing_secretp) in recv_privsep_state() 440 struct ssh *ssh = NULL; in main() local 749 sshd_hostkey_sign(struct ssh *ssh, struct sshkey *privkey, in sshd_hostkey_sign() 769 do_ssh2_kex(struct ssh *ssh) in do_ssh2_kex()
|
| H A D | auth2-gss.c | 66 userauth_gssapi(struct ssh *ssh, const char *method) in userauth_gssapi() 140 input_gssapi_token(int type, uint32_t plen, struct ssh *ssh) in input_gssapi_token() 214 input_gssapi_errtok(int type, uint32_t plen, struct ssh *ssh) in input_gssapi_errtok() 249 input_gssapi_exchange_complete(int type, uint32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() 280 input_gssapi_mic(int type, uint32_t plen, struct ssh *ssh) in input_gssapi_mic()
|
| H A D | auth2-chall.c | 197 auth2_challenge(struct ssh *ssh, char *devs) in auth2_challenge() 213 auth2_challenge_stop(struct ssh *ssh) in auth2_challenge_stop() 226 auth2_challenge_start(struct ssh *ssh) in auth2_challenge_start() 257 send_userauth_info_request(struct ssh *ssh) in send_userauth_info_request() 294 input_userauth_info_response(int type, uint32_t seq, struct ssh *ssh) in input_userauth_info_response()
|
| H A D | monitor_wrap.c | 258 mm_sshkey_setcompat(struct ssh *ssh) in mm_sshkey_setcompat() 273 mm_sshkey_sign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp, in mm_sshkey_sign() 303 mm_decode_activate_server_options(struct ssh *ssh, struct sshbuf *m) in mm_decode_activate_server_options() 331 mm_getpwnamallow(struct ssh *ssh, const char *username) in mm_getpwnamallow() 443 mm_auth_password(struct ssh *ssh, char *password) in mm_auth_password() 480 mm_user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in mm_user_key_allowed() 488 mm_hostbased_key_allowed(struct ssh *ssh, struct passwd *pw, in mm_hostbased_key_allowed() 595 mm_send_keystate(struct ssh *ssh, struct monitor *monitor) in mm_send_keystate() 687 mm_start_pam(struct ssh *ssh) in mm_start_pam() 853 mm_get_state(struct ssh *ssh, in mm_get_state() [all …]
|
| H A D | kexgen.c | 99 kex_gen_client(struct ssh *ssh) in kex_gen_client() 142 input_kex_gen_reply(int type, uint32_t seq, struct ssh *ssh) in input_kex_gen_reply() 267 kex_gen_server(struct ssh *ssh) in kex_gen_server() 275 input_kex_gen_init(int type, uint32_t seq, struct ssh *ssh) in input_kex_gen_init()
|
| H A D | kexgexs.c | 61 kexgex_server(struct ssh *ssh) in kexgex_server() 70 input_kex_dh_gex_request(int type, uint32_t seq, struct ssh *ssh) in input_kex_dh_gex_request() 126 input_kex_dh_gex_init(int type, uint32_t seq, struct ssh *ssh) in input_kex_dh_gex_init()
|
| H A D | kexgexc.c | 59 kexgex_client(struct ssh *ssh) in kexgex_client() 94 input_kex_dh_gex_group(int type, uint32_t seq, struct ssh *ssh) in input_kex_dh_gex_group() 144 input_kex_dh_gex_reply(int type, uint32_t seq, struct ssh *ssh) in input_kex_dh_gex_reply()
|
| H A D | mux.c | 182 mux_master_session_cleanup_cb(struct ssh *ssh, int cid, int force, void *unused) in mux_master_session_cleanup_cb() 203 mux_master_control_cleanup_cb(struct ssh *ssh, int cid, int force, void *unused) in mux_master_control_cleanup_cb() 257 mux_master_process_hello(struct ssh *ssh, u_int rid, in mux_master_process_hello() 328 mux_master_process_new_session(struct ssh *ssh, u_int rid, in mux_master_process_new_session() 487 mux_master_process_alive_check(struct ssh *ssh, u_int rid, in mux_master_process_alive_check() 505 mux_master_process_ext_info(struct ssh *ssh, u_int rid, in mux_master_process_ext_info() 541 mux_master_process_terminate(struct ssh *ssh, u_int rid, in mux_master_process_terminate() 629 mux_confirm_remote_forward(struct ssh *ssh, int type, uint32_t seq, void *ctxt) in mux_confirm_remote_forward() 718 mux_master_process_open_fwd(struct ssh *ssh, u_int rid, in mux_master_process_open_fwd() 883 mux_master_process_close_fwd(struct ssh *ssh, u_int rid, in mux_master_process_close_fwd() [all …]
|
| H A D | auth-passwd.c | 77 auth_password(struct ssh *ssh, const char *password) in auth_password() 167 sys_auth_passwd(struct ssh *ssh, const char *password) in sys_auth_passwd() 192 sys_auth_passwd(struct ssh *ssh, const char *password) in sys_auth_passwd()
|
| H A D | compat.c | 42 compat_banner(struct ssh *ssh, const char *version) in compat_banner() 142 compat_kex_proposal(struct ssh *ssh, const char *p) in compat_kex_proposal()
|
| H A D | blocklist_client.h | 51 #define BLOCKLIST_NOTIFY(ssh,x,msg) blocklist_notify(ssh,x,msg) argument 56 #define BLOCKLIST_NOTIFY(ssh,x,msg) argument
|