Home
last modified time | relevance | path

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

12

/freebsd-src/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 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()
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 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 Dssh_api.c86 struct ssh *ssh; in ssh_init() local
157 ssh_free(struct ssh *ssh) in ssh_free()
183 ssh_set_app_data(struct ssh *ssh, void *app_data) in ssh_set_app_data()
189 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data()
196 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey()
230 ssh_set_verify_host_key_callback(struct ssh *ssh, in ssh_set_verify_host_key_callback()
242 ssh_input_append(struct ssh *ssh, const u_char *data, size_t len) in ssh_input_append()
248 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next()
289 ssh_packet_payload(struct ssh *ssh, size_t *lenp) in ssh_packet_payload()
295 ssh_packet_put(struct ssh *ssh, int type, const u_char *data, size_t len) in ssh_packet_put()
[all …]
H A Dchannels.c238 channel_init_channels(struct ssh *ssh) in channel_init_channels()
253 channel_by_id(struct ssh *ssh, int id) in channel_by_id()
270 channel_by_remote_id(struct ssh *ssh, u_int remote_id) in channel_by_remote_id()
288 channel_lookup(struct ssh *ssh, int id) in channel_lookup()
317 channel_add_timeout(struct ssh *ssh, const char *type_pattern, in channel_add_timeout()
338 channel_clear_timeouts(struct ssh *ssh) in channel_clear_timeouts()
352 lookup_timeout(struct ssh *ssh, const char *type) in lookup_timeout()
372 channel_set_xtype(struct ssh *ssh, int id, const char *xctype) in channel_set_xtype()
392 channel_set_used_time(struct ssh *ssh, Channel *c) in channel_set_used_time()
404 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.c128 client_alive_check(struct ssh *ssh) in client_alive_check()
166 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something()
280 process_input(struct ssh *ssh, int connection_in) in process_input()
306 process_output(struct ssh *ssh, int connection_out) in process_output()
318 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets()
324 collect_children(struct ssh *ssh) in collect_children()
340 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2()
413 server_input_keep_alive(int type, u_int32_t seq, struct ssh *ssh) in server_input_keep_alive()
426 server_request_direct_tcpip(struct ssh *ssh, int *reason, const char **errmsg) in server_request_direct_tcpip()
474 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal()
[all …]
H A Dmonitor.c267 monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_preauth()
387 monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_postauth()
469 monitor_read(struct ssh *ssh, struct monitor *pmonitor, struct mon_table *ent, in monitor_read()
568 mm_answer_moduli(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_moduli()
608 mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_sign()
712 mm_answer_pwnamallow(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pwnamallow()
813 int mm_answer_auth2_read_banner(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_auth2_read_banner()
829 mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authserv()
878 mm_answer_authpassword(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authpassword()
918 mm_answer_bsdauthquery(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_bsdauthquery()
[all …]
H A Dkex.c339 kex_proposal_populate_entries(struct ssh *ssh, char *prop[PROPOSAL_MAX], in kex_proposal_populate_entries()
484 kex_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in kex_protocol_error()
502 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch()
509 kex_set_server_sig_algs(struct ssh *ssh, const char *allowed_algs) in kex_set_server_sig_algs()
545 kex_compose_ext_info_server(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_server()
567 kex_compose_ext_info_client(struct ssh *ssh, struct sshbuf *m) in kex_compose_ext_info_client()
584 kex_maybe_send_ext_info(struct ssh *ssh) in kex_maybe_send_ext_info()
621 kex_server_update_ext_info(struct ssh *ssh) in kex_server_update_ext_info()
641 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys()
675 kex_ext_info_client_parse(struct ssh *ssh, const char *name, in kex_ext_info_client_parse()
[all …]
H A Dsession.c184 auth_input_request_forwarding(struct ssh *ssh, struct passwd * pw) in auth_input_request_forwarding()
294 set_fwdpermit_from_authopts(struct ssh *ssh, const struct sshauthopt *opts) in set_fwdpermit_from_authopts()
333 do_authenticated(struct ssh *ssh, Authctxt *authctxt) in do_authenticated()
388 do_exec_no_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_no_pty()
557 do_exec_pty(struct ssh *ssh, Session *s, const char *command) in do_exec_pty()
657 do_exec(struct ssh *ssh, Session *s, const char *command) in do_exec()
737 do_login(struct ssh *ssh, Session *s, const char *command) in do_login()
982 do_setup_env(struct ssh *ssh, Session *s, const char *shell) in do_setup_env()
1218 do_rc_files(struct ssh *ssh, Session *s, const char *shell) in do_rc_files()
1484 child_close_fds(struct ssh *ssh) in child_close_fds()
[all …]
H A Dauth.c101 allowed_user(struct ssh *ssh, struct passwd * pw) in allowed_user()
268 auth_log(struct ssh *ssh, int authenticated, int partial, in auth_log()
338 auth_maxtries_exceeded(struct ssh *ssh) in auth_maxtries_exceeded()
356 auth_root_allowed(struct ssh *ssh, const char *method) in auth_root_allowed()
467 getpwnamallow(struct ssh *ssh, const char *user) in getpwnamallow()
606 auth_debug_send(struct ssh *ssh) in auth_debug_send()
672 remote_hostname(struct ssh *ssh) in remote_hostname()
761 auth_get_canonical_hostname(struct ssh *ssh, int use_dns) in auth_get_canonical_hostname()
849 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts) in auth_activate_options()
864 auth_restrict_session(struct ssh *ssh) in auth_restrict_session()
H A Dclientloop.c246 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time()
290 client_x11_get_proto(struct ssh *ssh, const char *display, in client_x11_get_proto()
461 client_check_window_change(struct ssh *ssh) in client_check_window_change()
471 client_global_request_reply(int type, u_int32_t seq, struct ssh *ssh) in client_global_request_reply()
496 server_alive_check(struct ssh *ssh) in server_alive_check()
516 send_chaff(struct ssh *ssh) in send_chaff()
577 obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout, in obfuscate_keystroke_timing()
684 client_wait_until_can_do_something(struct ssh *ssh, struct pollfd **pfdp, in client_wait_until_can_do_something()
791 client_process_net_input(struct ssh *ssh) in client_process_net_input()
815 client_status_confirm(struct ssh *ssh, int type, Channel *c, void *ctx) in client_status_confirm()
[all …]
H A Dsshconnect2.c96 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) in verify_host_key_callback()
220 ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port, in ssh_kex2()
424 ssh_userauth2(struct ssh *ssh, const char *local_user, in ssh_userauth2()
492 input_userauth_service_accept(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_service_accept()
525 userauth(struct ssh *ssh, char *authlist) in userauth()
563 input_userauth_error(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_error()
570 input_userauth_banner(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_banner()
589 input_userauth_success(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_success()
622 input_userauth_failure(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_failure()
682 input_userauth_pk_ok(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_pk_ok()
[all …]
H A Dauth2-gss.c65 userauth_gssapi(struct ssh *ssh, const char *method) in userauth_gssapi()
145 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token()
209 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok()
253 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete()
286 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()
139 input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_reply()
258 kex_gen_server(struct ssh *ssh) in kex_gen_server()
266 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 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 Dsshd.c486 privsep_preauth(struct ssh * ssh) privsep_preauth() argument
554 privsep_postauth(struct ssh * ssh,Authctxt * authctxt) global() argument
680 get_hostkey_by_type(int type,int nid,int need_private,struct ssh * ssh) global() argument
721 get_hostkey_public_by_type(int type,int nid,struct ssh * ssh) global() argument
727 get_hostkey_private_by_type(int type,int nid,struct ssh * ssh) global() argument
741 get_hostkey_public_by_index(int ind,struct ssh * ssh) global() argument
749 get_hostkey_index(struct sshkey * key,int compare,struct ssh * ssh) global() argument
776 notify_hostkeys(struct ssh * ssh) global() argument
1470 check_ip_options(struct ssh * ssh) global() argument
1502 set_process_rdomain(struct ssh * ssh,const char * name) global() argument
1589 print_config(struct ssh * ssh,struct connection_info * connection_info) global() argument
1609 struct ssh *ssh = NULL; global() local
2449 sshd_hostkey_sign(struct ssh * ssh,struct sshkey * privkey,struct sshkey * pubkey,u_char ** signature,size_t * slenp,const u_char * data,size_t dlen,const char * alg) global() argument
2485 do_ssh2_kex(struct ssh * ssh) global() argument
[all...]
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 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 …]
H A Dauth2.c140 userauth_send_banner(struct ssh *ssh, const char *msg) in userauth_send_banner()
153 userauth_banner(struct ssh *ssh) in userauth_banner()
172 do_authentication2(struct ssh *ssh) in do_authentication2()
185 input_service_request(int type, u_int32_t seq, struct ssh *ssh) in input_service_request()
270 input_userauth_request(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_request()
364 userauth_finish(struct ssh *ssh, int authenticated, const char *packet_method, in userauth_finish()

12