Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssh/
H A Dpacket.h54 struct ssh { struct
56 struct session_state *state;
59 struct kex *kex;
62 char *remote_ipaddr;
63 int remote_port;
87 struct ssh_channels *chanctxt; argument
93 typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *, argument
H A Dpacket.c233 struct ssh *ssh = NULL; in ssh_alloc_session_state() local
276 ssh_packet_set_input_hook(struct ssh *ssh, ssh_packet_hook_fn *hook, void *ctx) in ssh_packet_set_input_hook()
284 ssh_packet_is_rekeying(struct ssh *ssh) in ssh_packet_is_rekeying()
294 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) in ssh_packet_set_connection()
331 ssh_packet_set_timeout(struct ssh *ssh, int timeout, int count) in ssh_packet_set_timeout()
346 ssh_packet_set_mux(struct ssh *ssh) in ssh_packet_set_mux()
355 ssh_packet_get_mux(struct ssh *ssh) in ssh_packet_get_mux()
361 ssh_packet_set_log_preamble(struct ssh *ssh, const char *fmt, ...) in ssh_packet_set_log_preamble()
380 ssh_packet_stop_discard(struct ssh *ssh) in ssh_packet_stop_discard()
407 ssh_packet_start_discard(struct ssh *ssh, struct sshenc *enc, in ssh_packet_start_discard()
[all …]
H A Dnchan.c113 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed()
129 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty()
151 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty()
172 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow()
184 chan_send_eof2(struct ssh *ssh, Channel *c) in chan_send_eof2()
207 chan_send_close2(struct ssh *ssh, Channel *c) in chan_send_close2()
232 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2()
257 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof()
270 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose()
310 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed()
[all …]
H A Dssh_api.c91 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 Dchannels.c231 channel_init_channels(struct ssh *ssh) in channel_init_channels()
246 channel_by_id(struct ssh *ssh, int id) in channel_by_id()
263 channel_by_remote_id(struct ssh *ssh, u_int remote_id) in channel_by_remote_id()
281 channel_lookup(struct ssh *ssh, int id) in channel_lookup()
310 channel_add_timeout(struct ssh *ssh, const char *type_pattern, in channel_add_timeout()
331 channel_clear_timeouts(struct ssh *ssh) in channel_clear_timeouts()
345 lookup_timeout(struct ssh *ssh, const char *type) in lookup_timeout()
365 channel_set_xtype(struct ssh *ssh, int id, const char *xctype) in channel_set_xtype()
385 channel_set_used_time(struct ssh *ssh, Channel *c) in channel_set_used_time()
397 channel_get_expiry(struct ssh *ssh, Channel *c) in channel_get_expiry()
[all …]
H A Ddispatch.c40 dispatch_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_error()
54 dispatch_protocol_ignore(int type, u_int32_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 Dserverloop.c107 client_alive_check(struct ssh *ssh) in client_alive_check()
145 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something()
259 process_input(struct ssh *ssh, int connection_in) in process_input()
285 process_output(struct ssh *ssh, int connection_out) in process_output()
297 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets()
303 collect_children(struct ssh *ssh) in collect_children()
319 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2()
380 server_input_keep_alive(int type, u_int32_t seq, struct ssh *ssh) in server_input_keep_alive()
393 server_request_direct_tcpip(struct ssh *ssh, int *reason, const char **errmsg) in server_request_direct_tcpip()
441 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal()
[all …]
H A Dkex.c91 kex_proposal_populate_entries(struct ssh *ssh, char *prop[PROPOSAL_MAX], in kex_proposal_populate_entries()
236 kex_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in kex_protocol_error()
254 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch()
261 kex_set_server_sig_algs(struct ssh *ssh, const char *allowed_algs) in kex_set_server_sig_algs()
297 kex_compose_ext_info_server(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_server()
319 kex_compose_ext_info_client(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_client()
336 kex_maybe_send_ext_info(struct ssh *ssh) in kex_maybe_send_ext_info()
373 kex_server_update_ext_info(struct ssh *ssh) in kex_server_update_ext_info()
393 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys()
427 kex_ext_info_client_parse(struct ssh *ssh, const char *name, in kex_ext_info_client_parse()
[all …]
H A Dmonitor.c267 monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_preauth()
392 monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_postauth()
474 monitor_read(struct ssh *ssh, struct monitor *pmonitor, struct mon_table *ent, in monitor_read()
573 mm_answer_moduli(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_moduli()
613 mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_sign()
744 mm_answer_pwnamallow(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pwnamallow()
838 int mm_answer_auth2_read_banner(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_auth2_read_banner()
854 mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authserv()
903 mm_answer_authpassword(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authpassword()
943 mm_answer_bsdauthquery(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_bsdauthquery()
[all …]
H A Dsession.c195 auth_input_request_forwarding(struct ssh *ssh, struct passwd * pw) in auth_input_request_forwarding()
305 set_fwdpermit_from_authopts(struct ssh *ssh, const struct sshauthopt *opts) in set_fwdpermit_from_authopts()
344 do_authenticated(struct ssh *ssh, Authctxt *authctxt) in do_authenticated()
399 do_exec_no_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_no_pty()
568 do_exec_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_pty()
668 do_exec(struct ssh *ssh, Session *s, const char *command) in do_exec()
748 do_login(struct ssh *ssh, Session *s, const char *command) in do_login()
971 do_setup_env(struct ssh *ssh, Session *s, const char *shell) in do_setup_env()
1207 do_rc_files(struct ssh *ssh, Session *s, const char *shell) in do_rc_files()
1473 child_close_fds(struct ssh *ssh) in child_close_fds()
[all …]
H A Dclientloop.c245 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time()
289 client_x11_get_proto(struct ssh *ssh, const char *display, in client_x11_get_proto()
460 client_check_window_change(struct ssh *ssh) in client_check_window_change()
470 client_global_request_reply(int type, u_int32_t seq, struct ssh *ssh) in client_global_request_reply()
495 server_alive_check(struct ssh *ssh) in server_alive_check()
515 send_chaff(struct ssh *ssh) in send_chaff()
576 obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout, in obfuscate_keystroke_timing()
683 client_wait_until_can_do_something(struct ssh *ssh, struct pollfd **pfdp, in client_wait_until_can_do_something()
790 client_process_net_input(struct ssh *ssh) in client_process_net_input()
814 client_status_confirm(struct ssh *ssh, int type, Channel *c, void *ctx) in client_status_confirm()
[all …]
H A Dsshconnect2.c94 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) in verify_host_key_callback()
218 ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port, in ssh_kex2()
423 ssh_userauth2(struct ssh *ssh, const char *local_user, in ssh_userauth2()
491 input_userauth_service_accept(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_service_accept()
524 userauth(struct ssh *ssh, char *authlist) in userauth()
562 input_userauth_error(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_error()
569 input_userauth_banner(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_banner()
588 input_userauth_success(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_success()
621 input_userauth_failure(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_failure()
681 input_userauth_pk_ok(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_pk_ok()
[all …]
H A Dauth.c100 allowed_user(struct ssh *ssh, struct passwd * pw) in allowed_user()
267 auth_log(struct ssh *ssh, int authenticated, int partial, in auth_log()
337 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()
606 auth_debug_send(struct ssh *ssh) in auth_debug_send()
670 auth_get_canonical_hostname(struct ssh *ssh, int use_dns) in auth_get_canonical_hostname()
756 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts) in auth_activate_options()
771 auth_restrict_session(struct ssh *ssh) in auth_restrict_session()
H A Dsshd-session.c325 privsep_preauth(struct ssh *ssh) in privsep_preauth()
392 privsep_postauth(struct ssh *ssh, Authctxt *authctxt) in privsep_postauth()
523 get_hostkey_by_type(int type, int nid, int need_private, struct ssh *ssh) in get_hostkey_by_type()
564 get_hostkey_public_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_public_by_type()
570 get_hostkey_private_by_type(int type, int nid, struct ssh *ssh) in get_hostkey_private_by_type()
584 get_hostkey_public_by_index(int ind, struct ssh *ssh) in get_hostkey_public_by_index()
592 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh) in get_hostkey_index()
619 notify_hostkeys(struct ssh *ssh) in notify_hostkeys()
797 check_ip_options(struct ssh *ssh) in check_ip_options()
828 set_process_rdomain(struct ssh *ssh, const char *name) in set_process_rdomain()
[all …]
H A Dauth2-gss.c66 userauth_gssapi(struct ssh *ssh, const char *method) in userauth_gssapi()
146 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token()
210 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok()
254 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete()
282 input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_mic()
H A Dauth2-chall.c193 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 Dkexgen.c99 kex_gen_client(struct ssh *ssh) in kex_gen_client()
142 input_kex_gen_reply(int type, u_int32_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, u_int32_t seq, struct ssh *ssh) in input_kex_gen_init()
H A Dkexgexs.c62 kexgex_server(struct ssh *ssh) in kexgex_server()
71 input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_request()
127 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()
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 Dmux.c192 mux_master_session_cleanup_cb(struct ssh *ssh, int cid, int force, void *unused) in mux_master_session_cleanup_cb()
213 mux_master_control_cleanup_cb(struct ssh *ssh, int cid, int force, void *unused) in mux_master_control_cleanup_cb()
267 mux_master_process_hello(struct ssh *ssh, u_int rid, in mux_master_process_hello()
333 mux_master_process_new_session(struct ssh *ssh, u_int rid, in mux_master_process_new_session()
490 mux_master_process_alive_check(struct ssh *ssh, u_int rid, in mux_master_process_alive_check()
507 mux_master_process_terminate(struct ssh *ssh, u_int rid, in mux_master_process_terminate()
595 mux_confirm_remote_forward(struct ssh *ssh, int type, u_int32_t seq, void *ctxt) in mux_confirm_remote_forward()
683 mux_master_process_open_fwd(struct ssh *ssh, u_int rid, in mux_master_process_open_fwd()
848 mux_master_process_close_fwd(struct ssh *ssh, u_int rid, in mux_master_process_close_fwd()
960 mux_master_process_stdio_fwd(struct ssh *ssh, u_int rid, in mux_master_process_stdio_fwd()
[all …]
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 Dmonitor_wrap.c263 mm_sshkey_sign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp, in mm_sshkey_sign()
293 mm_decode_activate_server_options(struct ssh *ssh, struct sshbuf *m) in mm_decode_activate_server_options()
345 mm_getpwnamallow(struct ssh *ssh, const char *username) in mm_getpwnamallow()
457 mm_auth_password(struct ssh *ssh, char *password) in mm_auth_password()
494 mm_user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key, in mm_user_key_allowed()
502 mm_hostbased_key_allowed(struct ssh *ssh, struct passwd *pw, in mm_hostbased_key_allowed()
609 mm_send_keystate(struct ssh *ssh, struct monitor *monitor) in mm_send_keystate()
701 mm_start_pam(struct ssh *ssh) in mm_start_pam()
942 mm_audit_event(struct ssh *ssh, ssh_audit_event_t event) in mm_audit_event()
1083 server_process_permitopen_list(struct ssh *ssh, int listen, in server_process_permitopen_list()
[all …]
H A Dcompat.c42 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 Dblacklist_client.h51 #define BLACKLIST_NOTIFY(ssh,x,msg) blacklist_notify(ssh,x,msg) argument
56 #define BLACKLIST_NOTIFY(ssh,x,msg) argument
H A Dssh.c670 struct ssh *ssh = NULL; in main() local
1896 ssh_confirm_remote_forward(struct ssh *ssh, int type, u_int32_t seq, void *ctxt) in ssh_confirm_remote_forward()
1958 client_cleanup_stdio_fwd(struct ssh *ssh, int id, int force, void *arg) in client_cleanup_stdio_fwd()
1965 ssh_stdio_confirm(struct ssh *ssh, int id, int success, void *arg) in ssh_stdio_confirm()
1972 ssh_tun_confirm(struct ssh *ssh, int id, int success, void *arg) in ssh_tun_confirm()
1985 ssh_init_stdio_forwarding(struct ssh *ssh) in ssh_init_stdio_forwarding()
2008 ssh_init_forward_permissions(struct ssh *ssh, const char *what, char **opens, in ssh_init_forward_permissions()
2044 ssh_init_forwarding(struct ssh *ssh, char **ifname) in ssh_init_forwarding()
2136 ssh_session2_setup(struct ssh *ssh, int id, int success, void *arg) in ssh_session2_setup()
2184 ssh_session2_open(struct ssh *ssh) in ssh_session2_open()
[all …]

12