Home
last modified time | relevance | path

Searched defs:ssh (Results 1 – 25 of 47) sorted by relevance

12

/freebsd-12.1/crypto/openssh/
H A Dpacket.h52 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 Dpacket.c228 struct ssh *ssh = NULL; in ssh_alloc_session_state() local
337 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()
649 ssh_packet_close(struct ssh *ssh) in ssh_packet_close()
1199 ssh_packet_send2(struct ssh *ssh) in ssh_packet_send2()
1374 ssh_packet_read(struct ssh *ssh) in ssh_packet_read()
2559 sshpkt_get_end(struct ssh *ssh) in sshpkt_get_end()
[all …]
H A Dnchan.c108 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed()
124 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty()
146 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty()
167 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow()
179 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()
227 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2()
252 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof()
265 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose()
303 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed()
[all …]
H A Dssh_api.c76 struct ssh *ssh; in ssh_init() local
138 ssh_free(struct ssh *ssh) in ssh_free()
169 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data()
210 ssh_set_verify_host_key_callback(struct ssh *ssh, in ssh_set_verify_host_key_callback()
228 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next()
287 ssh_output_ptr(struct ssh *ssh, size_t *len) in ssh_output_ptr()
296 ssh_output_consume(struct ssh *ssh, size_t len) in ssh_output_consume()
302 ssh_output_space(struct ssh *ssh, size_t len) in ssh_output_space()
308 ssh_input_space(struct ssh *ssh, size_t len) in ssh_input_space()
399 _ssh_exchange_banner(struct ssh *ssh) in _ssh_exchange_banner()
[all …]
H A Dopacket.c17 ssh_packet_start(struct ssh *ssh, u_char type) in ssh_packet_start()
26 ssh_packet_put_char(struct ssh *ssh, int value) in ssh_packet_put_char()
36 ssh_packet_put_int(struct ssh *ssh, u_int value) in ssh_packet_put_int()
45 ssh_packet_put_int64(struct ssh *ssh, u_int64_t value) in ssh_packet_put_int64()
63 ssh_packet_put_cstring(struct ssh *ssh, const char *str) in ssh_packet_put_cstring()
83 ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value) in ssh_packet_put_bignum2()
105 ssh_packet_send(struct ssh *ssh) in ssh_packet_send()
114 ssh_packet_get_char(struct ssh *ssh) in ssh_packet_get_char()
125 ssh_packet_get_int(struct ssh *ssh) in ssh_packet_get_int()
136 ssh_packet_get_int64(struct ssh *ssh) in ssh_packet_get_int64()
[all …]
H A Dchannels.c226 channel_init_channels(struct ssh *ssh) in channel_init_channels()
245 channel_by_id(struct ssh *ssh, int id) in channel_by_id()
280 channel_lookup(struct ssh *ssh, int id) in channel_lookup()
643 channel_free_all(struct ssh *ssh) in channel_free_all()
657 channel_close_all(struct ssh *ssh) in channel_close_all()
670 channel_stop_listening(struct ssh *ssh) in channel_stop_listening()
719 channel_still_open(struct ssh *ssh) in channel_still_open()
762 channel_find_open(struct ssh *ssh) in channel_find_open()
808 channel_open_message(struct ssh *ssh) in channel_open_message()
2602 channel_output_poll(struct ssh *ssh)
[all …]
H A Ddispatch.c41 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 Dsession.c664 struct ssh *ssh = active_state; /* XXX */ in do_pre_login() local
1508 child_close_fds(struct ssh *ssh) in child_close_fds()
1935 session_pty_req(struct ssh *ssh, Session *s) in session_pty_req()
2026 session_x11_req(struct ssh *ssh, Session *s) in session_x11_req()
2058 session_shell_req(struct ssh *ssh, Session *s) in session_shell_req()
2065 session_exec_req(struct ssh *ssh, Session *s) in session_exec_req()
2077 session_break_req(struct ssh *ssh, Session *s) in session_break_req()
2089 session_env_req(struct ssh *ssh, Session *s) in session_env_req()
2185 session_set_fds(struct ssh *ssh, Session *s, in session_set_fds()
2265 session_close_x11(struct ssh *ssh, int id) in session_close_x11()
[all …]
H A Dserverloop.c180 client_alive_check(struct ssh *ssh) in client_alive_check()
214 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something()
310 process_input(struct ssh *ssh, fd_set *readset, int connection_in) in process_input()
351 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets()
357 collect_children(struct ssh *ssh) in collect_children()
379 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2()
446 server_input_keep_alive(int type, u_int32_t seq, struct ssh *ssh) in server_input_keep_alive()
495 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal()
532 server_request_tun(struct ssh *ssh) in server_request_tun()
593 server_request_session(struct ssh *ssh) in server_request_session()
[all …]
H A Dkex.c379 kex_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in kex_protocol_error()
392 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch()
399 kex_send_ext_info(struct ssh *ssh) in kex_send_ext_info()
421 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys()
439 kex_input_ext_info(int type, u_int32_t seq, struct ssh *ssh) in kex_input_ext_info()
477 kex_input_newkeys(int type, u_int32_t seq, struct ssh *ssh) in kex_input_newkeys()
499 kex_send_kexinit(struct ssh *ssh) in kex_send_kexinit()
529 kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh) in kex_input_kexinit()
665 kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_setup()
684 kex_start_rekex(struct ssh *ssh) in kex_start_rekex()
[all …]
H A Dclientloop.c234 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time()
278 client_x11_get_proto(struct ssh *ssh, const char *display, in client_x11_get_proto()
438 client_check_window_change(struct ssh *ssh) in client_check_window_change()
489 client_wait_until_can_do_something(struct ssh *ssh, in client_wait_until_can_do_something()
756 process_cmdline(struct ssh *ssh) in process_cmdline()
933 process_escapes(struct ssh *ssh, Channel *c, in process_escapes()
1193 client_filter_cleanup(struct ssh *ssh, int cid, void *ctx) in client_filter_cleanup()
1209 client_channel_closed(struct ssh *ssh, int id, void *arg) in client_channel_closed()
1525 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()
[all …]
H A Dsshconnect2.c96 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) in verify_host_key_callback()
371 struct ssh *ssh = active_state; in ssh_userauth2() local
461 struct ssh *ssh = active_state; /* XXX */ in userauth() local
654 struct ssh *ssh = active_state; /* XXX */ in userauth_gssapi() local
711 process_gssapi_token(struct ssh *ssh, gss_buffer_t recv_tok) in process_gssapi_token()
914 struct ssh *ssh = active_state; /* XXX */ in userauth_none() local
930 struct ssh *ssh = active_state; /* XXX */ in userauth_passwd() local
1052 key_sig_algorithm(struct ssh *ssh, const struct sshkey *key) in key_sig_algorithm()
1625 struct ssh *ssh = active_state; /* XXX */ in userauth_pubkey() local
1681 struct ssh *ssh = active_state; /* XXX */ in userauth_kbdint() local
[all …]
H A Dauth.c103 struct ssh *ssh = active_state; /* XXX */ in allowed_user() local
312 struct ssh *ssh = active_state; /* XXX */ in auth_log() local
379 struct ssh *ssh = active_state; /* XXX */ in auth_maxtries_exceeded() local
395 auth_root_allowed(struct ssh *ssh, const char *method) in auth_root_allowed()
564 struct ssh *ssh = active_state; /* XXX */ in getpwnamallow() local
695 struct ssh *ssh = active_state; /* XXX */ in auth_debug_send() local
753 remote_hostname(struct ssh *ssh) in remote_hostname()
842 auth_get_canonical_hostname(struct ssh *ssh, int use_dns) in auth_get_canonical_hostname()
1080 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts) in auth_activate_options()
1095 auth_restrict_session(struct ssh *ssh) in auth_restrict_session()
[all …]
H A Dauth2-pubkey.c88 userauth_pubkey(struct ssh *ssh) in userauth_pubkey()
275 check_principals_line(struct ssh *ssh, char *cp, const struct sshkey_cert *cert, in check_principals_line()
325 process_principals(struct ssh *ssh, FILE *f, const char *file, in process_principals()
362 match_principals_file(struct ssh *ssh, struct passwd *pw, char *file, in match_principals_file()
388 match_principals_command(struct ssh *ssh, struct passwd *user_pw, in match_principals_command()
557 check_authkey_line(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in check_authkey_line()
696 check_authkeys_file(struct ssh *ssh, struct passwd *pw, FILE *f, in check_authkeys_file()
728 user_cert_trusted_ca(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in user_cert_trusted_ca()
833 user_key_allowed2(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in user_key_allowed2()
861 user_key_command_allowed2(struct ssh *ssh, struct passwd *user_pw, in user_key_command_allowed2()
[all …]
H A Dauth2-gss.c62 userauth_gssapi(struct ssh *ssh) in userauth_gssapi()
138 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token()
202 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok()
246 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete()
279 input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_mic()
H A Dauth2-chall.c194 auth2_challenge(struct ssh *ssh, char *devs) in auth2_challenge()
210 auth2_challenge_stop(struct ssh *ssh) in auth2_challenge_stop()
223 auth2_challenge_start(struct ssh *ssh) in auth2_challenge_start()
254 send_userauth_info_request(struct ssh *ssh) in send_userauth_info_request()
291 input_userauth_info_response(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_info_response()
H A Dkexgexs.c63 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()
126 input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_init()
H A Dkexgexc.c60 kexgex_client(struct ssh *ssh) in kexgex_client()
94 input_kex_dh_gex_group(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_group()
148 input_kex_dh_gex_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_reply()
H A Dauth-passwd.c77 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 Dmux.c282 process_mux_master_hello(struct ssh *ssh, u_int rid, in process_mux_master_hello()
347 process_mux_new_session(struct ssh *ssh, u_int rid, in process_mux_new_session()
513 process_mux_alive_check(struct ssh *ssh, u_int rid, in process_mux_alive_check()
530 process_mux_terminate(struct ssh *ssh, u_int rid, in process_mux_terminate()
698 process_mux_open_fwd(struct ssh *ssh, u_int rid, in process_mux_open_fwd()
865 process_mux_close_fwd(struct ssh *ssh, u_int rid, in process_mux_close_fwd()
977 process_mux_stdio_fwd(struct ssh *ssh, u_int rid, in process_mux_stdio_fwd()
1145 process_mux_proxy(struct ssh *ssh, u_int rid, in process_mux_proxy()
1162 mux_master_read_cb(struct ssh *ssh, Channel *c) in mux_master_read_cb()
1266 mux_tty_alloc_failed(struct ssh *ssh, Channel *c) in mux_tty_alloc_failed()
[all …]
H A Dssh.c583 struct ssh *ssh = NULL; in main() local
1587 ssh_confirm_remote_forward(struct ssh *ssh, int type, u_int32_t seq, void *ctxt) in ssh_confirm_remote_forward()
1637 client_cleanup_stdio_fwd(struct ssh *ssh, int id, void *arg) in client_cleanup_stdio_fwd()
1644 ssh_stdio_confirm(struct ssh *ssh, int id, int success, void *arg) in ssh_stdio_confirm()
1651 ssh_init_stdio_forwarding(struct ssh *ssh) in ssh_init_stdio_forwarding()
1673 ssh_init_forwarding(struct ssh *ssh, char **ifname) in ssh_init_forwarding()
1759 ssh_session2_setup(struct ssh *ssh, int id, int success, void *arg) in ssh_session2_setup()
1802 ssh_session2_open(struct ssh *ssh) in ssh_session2_open()
1848 ssh_session2(struct ssh *ssh, struct passwd *pw) in ssh_session2()
H A Dkexc25519c.c50 kexc25519_client(struct ssh *ssh) in kexc25519_client()
72 input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_c25519_reply()
H A Dkexc25519s.c47 kexc25519_server(struct ssh *ssh) in kexc25519_server()
55 input_kex_c25519_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_c25519_init()
H A Dsshd.c388 sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) in sshd_exchange_identification()
781 get_hostkey_by_type(int type, int nid, int need_private, struct ssh *ssh)
810 get_hostkey_public_by_type(int type, int nid, struct ssh *ssh)
816 get_hostkey_private_by_type(int type, int nid, struct ssh *ssh)
830 get_hostkey_public_by_index(int ind, struct ssh *ssh)
838 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh)
865 notify_hostkeys(struct ssh *ssh)
1383 check_ip_options(struct ssh *ssh)
1415 set_process_rdomain(struct ssh *ssh, const char *name)
1496 struct ssh *ssh = NULL; local
[all …]
H A Dkexecdhs.c53 kexecdh_server(struct ssh *ssh) in kexecdh_server()
61 input_kex_ecdh_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_ecdh_init()

12