| /freebsd-13.1/crypto/openssh/ |
| H A D | packet.h | 52 struct ssh { struct 54 struct session_state *state; 57 struct kex *kex; 60 char *remote_ipaddr; 61 int remote_port; 85 struct ssh_channels *chanctxt; argument 91 typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *, argument
|
| H A D | nchan.c | 109 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed() 125 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty() 147 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty() 168 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow() 180 chan_send_eof2(struct ssh *ssh, Channel *c) in chan_send_eof2() 203 chan_send_close2(struct ssh *ssh, Channel *c) in chan_send_close2() 226 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2() 251 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof() 264 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose() 304 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed() [all …]
|
| H A D | packet.c | 234 struct ssh *ssh = NULL; in ssh_alloc_session_state() local 347 ssh_packet_set_mux(struct ssh *ssh) in ssh_packet_set_mux() 517 ssh_remote_ipaddr(struct ssh *ssh) in ssh_remote_ipaddr() 542 ssh_remote_port(struct ssh *ssh) in ssh_remote_port() 554 ssh_local_ipaddr(struct ssh *ssh) in ssh_local_ipaddr() 563 ssh_local_port(struct ssh *ssh) in ssh_local_port() 653 ssh_packet_close(struct ssh *ssh) in ssh_packet_close() 1242 ssh_packet_send2(struct ssh *ssh) in ssh_packet_send2() 1416 ssh_packet_read(struct ssh *ssh) in ssh_packet_read() 2591 sshpkt_get_end(struct ssh *ssh) in sshpkt_get_end() [all …]
|
| H A D | ssh_api.c | 85 struct ssh *ssh; in ssh_init() local 147 ssh_free(struct ssh *ssh) in ssh_free() 179 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data() 220 ssh_set_verify_host_key_callback(struct ssh *ssh, in ssh_set_verify_host_key_callback() 238 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next() 297 ssh_output_ptr(struct ssh *ssh, size_t *len) in ssh_output_ptr() 306 ssh_output_consume(struct ssh *ssh, size_t len) in ssh_output_consume() 312 ssh_output_space(struct ssh *ssh, size_t len) in ssh_output_space() 318 ssh_input_space(struct ssh *ssh, size_t len) in ssh_input_space() 428 _ssh_exchange_banner(struct ssh *ssh) in _ssh_exchange_banner() [all …]
|
| H A D | channels.c | 226 channel_init_channels(struct ssh *ssh) in channel_init_channels() 241 channel_by_id(struct ssh *ssh, int id) in channel_by_id() 276 channel_lookup(struct ssh *ssh, int id) in channel_lookup() 671 channel_free_all(struct ssh *ssh) in channel_free_all() 705 channel_close_all(struct ssh *ssh) in channel_close_all() 718 channel_stop_listening(struct ssh *ssh) in channel_stop_listening() 767 channel_still_open(struct ssh *ssh) in channel_still_open() 810 channel_find_open(struct ssh *ssh) in channel_find_open() 891 channel_open_message(struct ssh *ssh) in channel_open_message() 2613 channel_output_poll(struct ssh *ssh) [all …]
|
| H A D | dispatch.c | 41 dispatch_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_error() 55 dispatch_protocol_ignore(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_ignore() 62 ssh_dispatch_init(struct ssh *ssh, dispatch_fn *dflt) in ssh_dispatch_init() 70 ssh_dispatch_range(struct ssh *ssh, u_int from, u_int to, dispatch_fn *fn) in ssh_dispatch_range() 82 ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn) in ssh_dispatch_set() 88 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run() 129 ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run_fatal()
|
| H A D | serverloop.c | 128 client_alive_check(struct ssh *ssh) in client_alive_check() 167 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something() 266 process_input(struct ssh *ssh, fd_set *readset, int connection_in) in process_input() 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() 417 server_input_keep_alive(int type, u_int32_t seq, struct ssh *ssh) in server_input_keep_alive() 478 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal() 521 server_request_tun(struct ssh *ssh) in server_request_tun() 590 server_request_session(struct ssh *ssh) in server_request_session() [all …]
|
| H A D | monitor.c | 270 monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_preauth() 385 monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_postauth() 566 mm_answer_moduli(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_moduli() 606 mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_sign() 830 mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authserv() 987 mm_answer_pam_start(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pam_start() 1050 mm_answer_pam_query(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pam_query() 1496 mm_record_login(struct ssh *ssh, Session *s, struct passwd *pw) in mm_record_login() 1532 mm_answer_pty(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pty() 1620 mm_answer_term(struct ssh *ssh, int sock, struct sshbuf *req) in mm_answer_term() [all …]
|
| H A D | session.c | 1492 child_close_fds(struct ssh *ssh) in child_close_fds() 1926 session_pty_req(struct ssh *ssh, Session *s) in session_pty_req() 2020 session_x11_req(struct ssh *ssh, Session *s) in session_x11_req() 2056 session_shell_req(struct ssh *ssh, Session *s) in session_shell_req() 2066 session_exec_req(struct ssh *ssh, Session *s) in session_exec_req() 2082 session_break_req(struct ssh *ssh, Session *s) in session_break_req() 2096 session_env_req(struct ssh *ssh, Session *s) in session_env_req() 2157 session_signal_req(struct ssh *ssh, Session *s) in session_signal_req() 2268 session_set_fds(struct ssh *ssh, Session *s, in session_set_fds() 2348 session_close_x11(struct ssh *ssh, int id) in session_close_x11() [all …]
|
| H A D | compat.c | 43 compat_banner(struct ssh *ssh, const char *version) in compat_banner() 160 compat_cipher_proposal(struct ssh *ssh, char *cipher_prop) in compat_cipher_proposal() 174 compat_pkalg_proposal(struct ssh *ssh, char *pkalg_prop) in compat_pkalg_proposal() 188 compat_kex_proposal(struct ssh *ssh, char *p) in compat_kex_proposal()
|
| H A D | kex.c | 422 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch() 429 kex_send_ext_info(struct ssh *ssh) in kex_send_ext_info() 454 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys() 510 kex_input_newkeys(int type, u_int32_t seq, struct ssh *ssh) in kex_input_newkeys() 533 kex_send_kexinit(struct ssh *ssh) in kex_send_kexinit() 572 kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh) in kex_input_kexinit() 709 kex_ready(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_ready() 722 kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_setup() 741 kex_start_rekex(struct ssh *ssh) in kex_start_rekex() 884 kex_choose_conf(struct ssh *ssh) in kex_choose_conf() [all …]
|
| H A D | sshconnect2.c | 540 userauth(struct ssh *ssh, char *authlist) in userauth() 772 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() 828 userauth_gssapi_cleanup(struct ssh *ssh) in userauth_gssapi_cleanup() 1043 userauth_none(struct ssh *ssh) in userauth_none() 1059 userauth_passwd(struct ssh *ssh) in userauth_passwd() 1494 send_pubkey_test(struct ssh *ssh, Identity *id) in send_pubkey_test() 1792 pubkey_cleanup(struct ssh *ssh) in pubkey_cleanup() 1820 try_identity(struct ssh *ssh, Identity *id) in try_identity() 1834 userauth_pubkey(struct ssh *ssh) in userauth_pubkey() 1882 userauth_kbdint(struct ssh *ssh) in userauth_kbdint() [all …]
|
| H A D | clientloop.c | 218 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time() 433 client_check_window_change(struct ssh *ssh) in client_check_window_change() 468 server_alive_check(struct ssh *ssh) in server_alive_check() 491 client_wait_until_can_do_something(struct ssh *ssh, in client_wait_until_can_do_something() 755 process_cmdline(struct ssh *ssh) in process_cmdline() 932 process_escapes(struct ssh *ssh, Channel *c, in process_escapes() 1158 client_process_buffered_input_packets(struct ssh *ssh) in client_process_buffered_input_packets() 1519 client_request_forwarded_streamlocal(struct ssh *ssh, in client_request_forwarded_streamlocal() 1609 client_request_tun_fwd(struct ssh *ssh, int tun_mode, in client_request_tun_fwd() 2199 client_input_hostkeys(struct ssh *ssh) in client_input_hostkeys() [all …]
|
| H A D | auth.c | 103 allowed_user(struct ssh *ssh, struct passwd * pw) in allowed_user() 314 auth_log(struct ssh *ssh, int authenticated, int partial, in auth_log() 384 auth_maxtries_exceeded(struct ssh *ssh) in auth_maxtries_exceeded() 402 auth_root_allowed(struct ssh *ssh, const char *method) in auth_root_allowed() 569 getpwnamallow(struct ssh *ssh, const char *user) in getpwnamallow() 709 auth_debug_send(struct ssh *ssh) in auth_debug_send() 765 remote_hostname(struct ssh *ssh) in remote_hostname() 854 auth_get_canonical_hostname(struct ssh *ssh, int use_dns) in auth_get_canonical_hostname() 942 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts) in auth_activate_options() 957 auth_restrict_session(struct ssh *ssh) in auth_restrict_session() [all …]
|
| H A D | auth2-pubkey.c | 89 userauth_pubkey(struct ssh *ssh) in userauth_pubkey() 324 check_principals_line(struct ssh *ssh, char *cp, const struct sshkey_cert *cert, in check_principals_line() 374 process_principals(struct ssh *ssh, FILE *f, const char *file, in process_principals() 411 match_principals_file(struct ssh *ssh, struct passwd *pw, char *file, in match_principals_file() 437 match_principals_command(struct ssh *ssh, struct passwd *user_pw, in match_principals_command() 576 check_authkey_line(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in check_authkey_line() 716 check_authkeys_file(struct ssh *ssh, struct passwd *pw, FILE *f, in check_authkeys_file() 748 user_cert_trusted_ca(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in user_cert_trusted_ca() 853 user_key_allowed2(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in user_key_allowed2() 881 user_key_command_allowed2(struct ssh *ssh, struct passwd *user_pw, in user_key_command_allowed2() [all …]
|
| H A D | auth2-gss.c | 63 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() 139 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token() 203 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok() 247 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() 280 input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_mic()
|
| H A D | auth2-chall.c | 193 auth2_challenge(struct ssh *ssh, char *devs) in auth2_challenge() 209 auth2_challenge_stop(struct ssh *ssh) in auth2_challenge_stop() 222 auth2_challenge_start(struct ssh *ssh) in auth2_challenge_start() 253 send_userauth_info_request(struct ssh *ssh) in send_userauth_info_request() 290 input_userauth_info_response(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_info_response()
|
| H A D | kexgen.c | 99 kex_gen_client(struct ssh *ssh) in kex_gen_client() 139 input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_reply() 240 kex_gen_server(struct ssh *ssh) in kex_gen_server() 248 input_kex_gen_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_init()
|
| H A D | kexgexs.c | 63 kexgex_server(struct ssh *ssh) in kexgex_server() 72 input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_request() 128 input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_init()
|
| H A D | kexgexc.c | 60 kexgex_client(struct ssh *ssh) in kexgex_client() 95 input_kex_dh_gex_group(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_group() 145 input_kex_dh_gex_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_reply()
|
| 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 | mux.c | 266 mux_master_process_hello(struct ssh *ssh, u_int rid, in mux_master_process_hello() 332 mux_master_process_new_session(struct ssh *ssh, u_int rid, in mux_master_process_new_session() 489 mux_master_process_alive_check(struct ssh *ssh, u_int rid, in mux_master_process_alive_check() 506 mux_master_process_terminate(struct ssh *ssh, u_int rid, in mux_master_process_terminate() 682 mux_master_process_open_fwd(struct ssh *ssh, u_int rid, in mux_master_process_open_fwd() 847 mux_master_process_close_fwd(struct ssh *ssh, u_int rid, in mux_master_process_close_fwd() 959 mux_master_process_stdio_fwd(struct ssh *ssh, u_int rid, in mux_master_process_stdio_fwd() 1118 mux_master_process_proxy(struct ssh *ssh, u_int rid, in mux_master_process_proxy() 1135 mux_master_read_cb(struct ssh *ssh, Channel *c) in mux_master_read_cb() 1234 mux_tty_alloc_failed(struct ssh *ssh, Channel *c) in mux_tty_alloc_failed() [all …]
|
| H A D | blacklist_client.h | 51 #define BLACKLIST_NOTIFY(ssh,x,msg) blacklist_notify(ssh,x,msg) argument 56 #define BLACKLIST_NOTIFY(ssh,x,msg) argument
|
| H A D | ssh.c | 621 struct ssh *ssh = NULL; in main() local 1791 ssh_confirm_remote_forward(struct ssh *ssh, int type, u_int32_t seq, void *ctxt) in ssh_confirm_remote_forward() 1853 client_cleanup_stdio_fwd(struct ssh *ssh, int id, void *arg) in client_cleanup_stdio_fwd() 1860 ssh_stdio_confirm(struct ssh *ssh, int id, int success, void *arg) in ssh_stdio_confirm() 1867 ssh_tun_confirm(struct ssh *ssh, int id, int success, void *arg) in ssh_tun_confirm() 1880 ssh_init_stdio_forwarding(struct ssh *ssh) in ssh_init_stdio_forwarding() 1903 ssh_init_forward_permissions(struct ssh *ssh, const char *what, char **opens, in ssh_init_forward_permissions() 1940 ssh_init_forwarding(struct ssh *ssh, char **ifname) in ssh_init_forwarding() 2032 ssh_session2_setup(struct ssh *ssh, int id, int success, void *arg) in ssh_session2_setup() 2080 ssh_session2_open(struct ssh *ssh) in ssh_session2_open() [all …]
|
| H A D | sshd.c | 498 privsep_preauth(struct ssh *ssh) in privsep_preauth() 566 privsep_postauth(struct ssh *ssh, Authctxt *authctxt) 733 get_hostkey_public_by_type(int type, int nid, struct ssh *ssh) 739 get_hostkey_private_by_type(int type, int nid, struct ssh *ssh) 753 get_hostkey_public_by_index(int ind, struct ssh *ssh) 788 notify_hostkeys(struct ssh *ssh) 1434 check_ip_options(struct ssh *ssh) 1466 set_process_rdomain(struct ssh *ssh, const char *name) 1558 struct ssh *ssh = NULL; local 2407 sshd_hostkey_sign(struct ssh *ssh, struct sshkey *privkey, [all …]
|