Home
last modified time | relevance | path

Searched refs:ssh (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/freebsd-13.1/crypto/openssh/
H A Dpacket.h52 struct ssh { struct
175 int sshpkt_start(struct ssh *ssh, u_char type);
176 int sshpkt_send(struct ssh *ssh);
187 int sshpkt_put_u8(struct ssh *ssh, u_char val);
188 int sshpkt_put_u32(struct ssh *ssh, u_int32_t val);
189 int sshpkt_put_u64(struct ssh *ssh, u_int64_t val);
191 int sshpkt_put_cstring(struct ssh *ssh, const void *v);
197 int sshpkt_get_u8(struct ssh *ssh, u_char *valp);
198 int sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp);
199 int sshpkt_get_u64(struct ssh *ssh, u_int64_t *valp);
[all …]
H A Dssh_api.c85 struct ssh *ssh; in ssh_init() local
147 ssh_free(struct ssh *ssh) in ssh_free() argument
160 if (ssh->kex && ssh->kex->server) in ssh_free()
179 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data() argument
238 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next() argument
297 ssh_output_ptr(struct ssh *ssh, size_t *len) in ssh_output_ptr() argument
306 ssh_output_consume(struct ssh *ssh, size_t len) in ssh_output_consume() argument
312 ssh_output_space(struct ssh *ssh, size_t len) in ssh_output_space() argument
318 ssh_input_space(struct ssh *ssh, size_t len) in ssh_input_space() argument
428 _ssh_exchange_banner(struct ssh *ssh) in _ssh_exchange_banner() argument
[all …]
H A Dpacket.c234 struct ssh *ssh = NULL; in ssh_alloc_session_state() local
347 ssh_packet_set_mux(struct ssh *ssh) in ssh_packet_set_mux() argument
356 ssh_packet_get_mux(struct ssh *ssh) in ssh_packet_get_mux() argument
517 ssh_remote_ipaddr(struct ssh *ssh) in ssh_remote_ipaddr() argument
542 ssh_remote_port(struct ssh *ssh) in ssh_remote_port() argument
554 ssh_local_ipaddr(struct ssh *ssh) in ssh_local_ipaddr() argument
563 ssh_local_port(struct ssh *ssh) in ssh_local_port() argument
653 ssh_packet_close(struct ssh *ssh) in ssh_packet_close() argument
1416 ssh_packet_read(struct ssh *ssh) in ssh_packet_read() argument
1878 if (ssh && ssh->kex && ssh->kex->failed_choice) { in sshpkt_vfatal()
[all …]
H A Dchannels.h85 struct ssh;
254 void channel_init_channels(struct ssh *ssh);
258 Channel *channel_by_id(struct ssh *, int);
260 Channel *channel_lookup(struct ssh *, int);
266 void channel_free_all(struct ssh *);
267 void channel_stop_listening(struct ssh *);
308 void channel_close_all(struct ssh *);
309 int channel_still_open(struct ssh *);
311 char *channel_open_message(struct ssh *);
312 int channel_find_open(struct ssh *);
[all …]
H A Dserverloop.c128 client_alive_check(struct ssh *ssh) in client_alive_check() argument
167 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something() argument
276 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh)); in process_input()
283 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh), in process_input()
312 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets() argument
318 collect_children(struct ssh *ssh) in collect_children() argument
334 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2() argument
478 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal() argument
521 server_request_tun(struct ssh *ssh) in server_request_tun() argument
590 server_request_session(struct ssh *ssh) in server_request_session() argument
[all …]
H A Ddispatch.c41 dispatch_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_error() argument
55 dispatch_protocol_ignore(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_ignore() argument
62 ssh_dispatch_init(struct ssh *ssh, dispatch_fn *dflt) in ssh_dispatch_init() argument
66 ssh->dispatch[i] = 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() argument
77 ssh->dispatch[i] = fn; in ssh_dispatch_range()
82 ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn) in ssh_dispatch_set() argument
84 ssh->dispatch[type] = fn; in ssh_dispatch_set()
88 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run() argument
113 r = (*ssh->dispatch[type])(type, seqnr, ssh); in ssh_dispatch_run()
[all …]
H A Dssh_api.h48 void ssh_free(struct ssh *);
64 int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
72 int ssh_set_verify_host_key_callback(struct ssh *ssh,
89 int ssh_packet_next(struct ssh *ssh, u_char *typep);
96 const u_char *ssh_packet_payload(struct ssh *ssh, size_t *lenp);
103 int ssh_packet_put(struct ssh *ssh, int type, const u_char *data,
110 int ssh_input_space(struct ssh *ssh, size_t len);
115 int ssh_input_append(struct ssh *ssh, const u_char *data, size_t len);
121 int ssh_output_space(struct ssh *ssh, size_t len);
129 const u_char *ssh_output_ptr(struct ssh *ssh, size_t *len);
[all …]
H A Dauth2-gss.c53 static int input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh);
54 static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
55 static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
63 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() argument
139 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token() argument
167 if ((r = sshpkt_start(ssh, in input_gssapi_token()
179 if ((r = sshpkt_start(ssh, in input_gssapi_token()
192 ssh_dispatch_set(ssh, in input_gssapi_token()
203 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok() argument
247 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() argument
[all …]
H A Dnchan.c109 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed() argument
125 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty() argument
147 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty() argument
168 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow() argument
180 chan_send_eof2(struct ssh *ssh, Channel *c) in chan_send_eof2() argument
203 chan_send_close2(struct ssh *ssh, Channel *c) in chan_send_close2() argument
226 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2() argument
251 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof() argument
264 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose() argument
304 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed() argument
[all …]
H A Dsshconnect2.c359 int (*userauth)(struct ssh *ssh);
360 void (*cleanup)(struct ssh *ssh);
540 userauth(struct ssh *ssh, char *authlist) in userauth() argument
772 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() argument
828 userauth_gssapi_cleanup(struct ssh *ssh) in userauth_gssapi_cleanup() argument
1043 userauth_none(struct ssh *ssh) in userauth_none() argument
1059 userauth_passwd(struct ssh *ssh) in userauth_passwd() argument
1792 pubkey_cleanup(struct ssh *ssh) in pubkey_cleanup() argument
1834 userauth_pubkey(struct ssh *ssh) in userauth_pubkey() argument
1882 userauth_kbdint(struct ssh *ssh) in userauth_kbdint() argument
[all …]
H A Dchannels.c226 channel_init_channels(struct ssh *ssh) in channel_init_channels() argument
241 channel_by_id(struct ssh *ssh, int id) in channel_by_id() argument
276 channel_lookup(struct ssh *ssh, int id) in channel_lookup() argument
671 channel_free_all(struct ssh *ssh) in channel_free_all() argument
705 channel_close_all(struct ssh *ssh) in channel_close_all() argument
718 channel_stop_listening(struct ssh *ssh) in channel_stop_listening() argument
767 channel_still_open(struct ssh *ssh) in channel_still_open() argument
810 channel_find_open(struct ssh *ssh) in channel_find_open() argument
891 channel_open_message(struct ssh *ssh) in channel_open_message() argument
2613 channel_output_poll(struct ssh *ssh) argument
[all …]
H A Dclientloop.c158 static void client_init_dispatch(struct ssh *ssh);
218 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time() argument
433 client_check_window_change(struct ssh *ssh) in client_check_window_change() argument
468 server_alive_check(struct ssh *ssh) in server_alive_check() argument
491 client_wait_until_can_do_something(struct ssh *ssh, in client_wait_until_can_do_something() argument
755 process_cmdline(struct ssh *ssh) in process_cmdline() argument
932 process_escapes(struct ssh *ssh, Channel *c, in process_escapes() argument
1519 client_request_forwarded_streamlocal(struct ssh *ssh, in client_request_forwarded_streamlocal() argument
1609 client_request_tun_fwd(struct ssh *ssh, int tun_mode, in client_request_tun_fwd() argument
2199 client_input_hostkeys(struct ssh *ssh) in client_input_hostkeys() argument
[all …]
H A Dkexgexs.c63 kexgex_server(struct ssh *ssh) in kexgex_server() argument
72 input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_request() argument
74 struct kex *kex = ssh->kex; in input_kex_dh_gex_request()
82 if ((r = sshpkt_get_u32(ssh, &min)) != 0 || in input_kex_dh_gex_request()
85 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_request()
113 (r = sshpkt_send(ssh)) != 0) 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() argument
130 struct kex *kex = ssh->kex; in input_kex_dh_gex_init()
150 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_init()
194 (r = sshpkt_send(ssh)) != 0) in input_kex_dh_gex_init()
[all …]
H A Dkexgexc.c60 kexgex_client(struct ssh *ssh) in kexgex_client() argument
62 struct kex *kex = ssh->kex; in kexgex_client()
78 (r = sshpkt_send(ssh)) != 0) in kexgex_client()
95 input_kex_dh_gex_group(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_group() argument
97 struct kex *kex = ssh->kex; in input_kex_dh_gex_group()
107 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_group()
126 (r = sshpkt_send(ssh)) != 0) 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() argument
147 struct kex *kex = ssh->kex; in input_kex_dh_gex_reply()
183 if (ssh->compat & SSH_OLD_DHGEX) in input_kex_dh_gex_reply()
[all …]
H A Dkex.c422 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch() argument
429 kex_send_ext_info(struct ssh *ssh) in kex_send_ext_info() argument
454 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys() argument
533 kex_send_kexinit(struct ssh *ssh) in kex_send_kexinit() argument
709 kex_ready(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_ready() argument
722 kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_setup() argument
741 kex_start_rekex(struct ssh *ssh) in kex_start_rekex() argument
884 kex_choose_conf(struct ssh *ssh) in kex_choose_conf() argument
1152 send_error(struct ssh *ssh, char *msg) in send_error() argument
1353 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh), in kex_exchange_identification()
[all …]
H A Dsession.c1492 child_close_fds(struct ssh *ssh) in child_close_fds() argument
1926 session_pty_req(struct ssh *ssh, Session *s) in session_pty_req() argument
2020 session_x11_req(struct ssh *ssh, Session *s) in session_x11_req() argument
2056 session_shell_req(struct ssh *ssh, Session *s) in session_shell_req() argument
2066 session_exec_req(struct ssh *ssh, Session *s) in session_exec_req() argument
2082 session_break_req(struct ssh *ssh, Session *s) in session_break_req() argument
2096 session_env_req(struct ssh *ssh, Session *s) in session_env_req() argument
2157 session_signal_req(struct ssh *ssh, Session *s) in session_signal_req() argument
2268 session_set_fds(struct ssh *ssh, Session *s, in session_set_fds() argument
2348 session_close_x11(struct ssh *ssh, int id) in session_close_x11() argument
[all …]
H A Dauth.h44 struct ssh;
107 int (*userauth)(struct ssh *);
131 int auth_password(struct ssh *, const char *);
167 void do_authentication2(struct ssh *);
172 int auth_root_allowed(struct ssh *, const char *);
182 int auth2_challenge(struct ssh *, char *);
183 void auth2_challenge_stop(struct ssh *);
187 int allowed_user(struct ssh *, struct passwd *);
215 void auth_restrict_session(struct ssh *);
223 void auth_debug_send(struct ssh *);
[all …]
H A Dauth2-chall.c193 auth2_challenge(struct ssh *ssh, char *devs) in auth2_challenge() argument
204 return auth2_challenge_start(ssh); in auth2_challenge()
209 auth2_challenge_stop(struct ssh *ssh) in auth2_challenge_stop() argument
222 auth2_challenge_start(struct ssh *ssh) in auth2_challenge_start() argument
231 auth2_challenge_stop(ssh); in auth2_challenge_start()
238 auth2_challenge_stop(ssh); in auth2_challenge_start()
242 auth2_challenge_stop(ssh); in auth2_challenge_start()
253 send_userauth_info_request(struct ssh *ssh) in send_userauth_info_request() argument
290 input_userauth_info_response(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_info_response() argument
350 auth2_challenge_stop(ssh); in input_userauth_info_response()
[all …]
H A Dkexgen.c45 static int input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh);
99 kex_gen_client(struct ssh *ssh) in kex_gen_client() argument
101 struct kex *kex = ssh->kex; in kex_gen_client()
131 (r = sshpkt_send(ssh)) != 0) in kex_gen_client()
139 input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_reply() argument
141 struct kex *kex = ssh->kex; in input_kex_gen_reply()
222 r = kex_send_newkeys(ssh); in input_kex_gen_reply()
240 kex_gen_server(struct ssh *ssh) in kex_gen_server() argument
248 input_kex_gen_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_init() argument
250 struct kex *kex = ssh->kex; in input_kex_gen_init()
[all …]
H A Dauth2.c140 userauth_send_banner(struct ssh *ssh, const char *msg) in userauth_send_banner() argument
153 userauth_banner(struct ssh *ssh) in userauth_banner() argument
172 do_authentication2(struct ssh *ssh) in do_authentication2() argument
179 ssh->authctxt = NULL; in do_authentication2()
184 input_service_request(int type, u_int32_t seq, struct ssh *ssh) in input_service_request() argument
262 input_userauth_request(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_request() argument
299 PRIVSEP(start_pam(ssh)); in input_userauth_request()
309 userauth_banner(ssh); in input_userauth_request()
320 auth2_challenge_stop(ssh); in input_userauth_request()
351 userauth_finish(struct ssh *ssh, int authenticated, const char *method, in userauth_finish() argument
[all …]
H A Dclientloop.h40 struct ssh;
43 int client_loop(struct ssh *, int, int, int);
44 int client_x11_get_proto(struct ssh *, const char *, const char *,
47 void client_session2_setup(struct ssh *, int, int, int,
49 char *client_request_tun_fwd(struct ssh *, int, int, int,
55 void client_filter_cleanup(struct ssh *, int, void *);
59 typedef void global_confirm_cb(struct ssh *, int, u_int32_t, void *);
64 void client_expect_confirm(struct ssh *, int, const char *,
80 void muxserver_listen(struct ssh *);
82 void mux_exit_message(struct ssh *, Channel *, int);
[all …]
H A Dmonitor.c270 monitor_child_preauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_preauth() argument
385 monitor_child_postauth(struct ssh *ssh, struct monitor *pmonitor) in monitor_child_postauth() argument
566 mm_answer_moduli(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_moduli() argument
606 mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_sign() argument
830 mm_answer_authserv(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_authserv() argument
987 mm_answer_pam_start(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pam_start() argument
992 start_pam(ssh); in mm_answer_pam_start()
1496 mm_record_login(struct ssh *ssh, Session *s, struct passwd *pw) in mm_record_login() argument
1532 mm_answer_pty(struct ssh *ssh, int sock, struct sshbuf *m) in mm_answer_pty() argument
1620 mm_answer_term(struct ssh *ssh, int sock, struct sshbuf *req) in mm_answer_term() argument
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/sshkey/
H A Dmktestdata.sh112 ssh-keygen -pf rsa_n -N ""
113 ssh-keygen -pf dsa_n -N ""
114 ssh-keygen -pf ecdsa_n -N ""
126 ssh-keygen -pf rsa_1_pw -m PEM -N "$PW"
127 ssh-keygen -pf dsa_1_pw -m PEM -N "$PW"
129 ssh-keygen -pf ed25519_1_pw -N "$PW"
131 ssh-keygen -pf ed25519_sk1_pw -N "$PW"
132 ssh-keygen -pf rsa_n_pw -N "$PW"
133 ssh-keygen -pf dsa_n_pw -N "$PW"
134 ssh-keygen -pf ecdsa_n_pw -N "$PW"
[all …]
/freebsd-13.1/crypto/openssh/contrib/suse/
H A Dopenssh.spec25 Obsoletes: ssh
26 Provides: ssh
43 Obsoletes: ssh-extras
44 Provides: openssh:${_libdir}/ssh/ssh-askpass
90 - Made symlink to gnome-ssh-askpass called ssh-askpass
185 %verify_permissions -e /etc/ssh/sshd_config -e /etc/ssh/ssh_config -e /usr/bin/ssh
214 %attr(4711,root,root) %{_libdir}/ssh/ssh-keysign
215 %attr(0755,root,root) %{_libdir}/ssh/ssh-pkcs11-helper
216 %attr(0755,root,root) %{_libdir}/ssh/ssh-sk-helper
240 %attr(0755,root,root) %{_libdir}/ssh/ssh-askpass
[all …]
/freebsd-13.1/crypto/openssh/contrib/
H A DMakefile6 gnome-ssh-askpass1: gnome-ssh-askpass1.c
8 gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
11 gnome-ssh-askpass2: gnome-ssh-askpass2.c
13 gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
16 gnome-ssh-askpass3: gnome-ssh-askpass3.c
18 gnome-ssh-askpass3.c -o gnome-ssh-askpass3 \
22 rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]

12345678910>>...14