Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-14.2/crypto/openssh/
H A Dpacket.h52 struct ssh { struct
176 int sshpkt_start(struct ssh *ssh, u_char type);
177 int sshpkt_send(struct ssh *ssh);
188 int sshpkt_put_u8(struct ssh *ssh, u_char val);
189 int sshpkt_put_u32(struct ssh *ssh, u_int32_t val);
190 int sshpkt_put_u64(struct ssh *ssh, u_int64_t val);
192 int sshpkt_put_cstring(struct ssh *ssh, const void *v);
198 int sshpkt_get_u8(struct ssh *ssh, u_char *valp);
199 int sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp);
200 int sshpkt_get_u64(struct ssh *ssh, u_int64_t *valp);
[all …]
H A Dssh_api.c86 struct ssh *ssh; in ssh_init() local
157 ssh_free(struct ssh *ssh) in ssh_free() argument
170 if (ssh->kex && ssh->kex->server) in ssh_free()
189 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data() argument
248 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next() argument
307 ssh_output_ptr(struct ssh *ssh, size_t *len) in ssh_output_ptr() argument
316 ssh_output_consume(struct ssh *ssh, size_t len) in ssh_output_consume() argument
322 ssh_output_space(struct ssh *ssh, size_t len) in ssh_output_space() argument
328 ssh_input_space(struct ssh *ssh, size_t len) in ssh_input_space() argument
438 _ssh_exchange_banner(struct ssh *ssh) in _ssh_exchange_banner() argument
[all …]
H A Dpacket.c233 struct ssh *ssh = NULL; in ssh_alloc_session_state() local
346 ssh_packet_set_mux(struct ssh *ssh) in ssh_packet_set_mux() argument
355 ssh_packet_get_mux(struct ssh *ssh) in ssh_packet_get_mux() argument
516 ssh_remote_ipaddr(struct ssh *ssh) in ssh_remote_ipaddr() argument
541 ssh_remote_port(struct ssh *ssh) in ssh_remote_port() argument
553 ssh_local_ipaddr(struct ssh *ssh) in ssh_local_ipaddr() argument
562 ssh_local_port(struct ssh *ssh) in ssh_local_port() argument
652 ssh_packet_close(struct ssh *ssh) in ssh_packet_close() argument
1419 ssh_packet_read(struct ssh *ssh) in ssh_packet_read() argument
2648 sshpkt_get_end(struct ssh *ssh) in sshpkt_get_end() argument
[all …]
H A Dchannels.h85 struct ssh;
280 void channel_init_channels(struct ssh *ssh);
284 Channel *channel_by_id(struct ssh *, int);
292 void channel_free_all(struct ssh *);
313 void channel_clear_timeouts(struct ssh *);
339 int channel_output_poll(struct ssh *);
342 void channel_close_all(struct ssh *);
344 int channel_tty_open(struct ssh *);
346 char *channel_open_message(struct ssh *);
347 int channel_find_open(struct ssh *);
[all …]
H A Dserverloop.c128 client_alive_check(struct ssh *ssh) in client_alive_check() argument
166 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something() argument
280 process_input(struct ssh *ssh, int connection_in) in process_input() argument
295 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh), in process_input()
306 process_output(struct ssh *ssh, int connection_out) in process_output() argument
318 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets() argument
324 collect_children(struct ssh *ssh) in collect_children() argument
340 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2() argument
517 server_request_tun(struct ssh *ssh) in server_request_tun() argument
586 server_request_session(struct ssh *ssh) in server_request_session() argument
[all …]
H A Ddispatch.c40 dispatch_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_error() argument
54 dispatch_protocol_ignore(int type, u_int32_t seq, struct ssh *ssh) in dispatch_protocol_ignore() argument
61 ssh_dispatch_init(struct ssh *ssh, dispatch_fn *dflt) in ssh_dispatch_init() argument
65 ssh->dispatch[i] = 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() argument
76 ssh->dispatch[i] = fn; in ssh_dispatch_range()
81 ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn) in ssh_dispatch_set() argument
83 ssh->dispatch[type] = fn; in ssh_dispatch_set()
87 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done) in ssh_dispatch_run() argument
112 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.c55 static int input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh);
56 static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
57 static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
65 userauth_gssapi(struct ssh *ssh, const char *method) in userauth_gssapi() argument
145 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token() argument
173 if ((r = sshpkt_start(ssh, in input_gssapi_token()
185 if ((r = sshpkt_start(ssh, in input_gssapi_token()
198 ssh_dispatch_set(ssh, in input_gssapi_token()
209 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok() argument
253 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() argument
[all …]
H A Dchannels.c238 channel_init_channels(struct ssh *ssh) in channel_init_channels() argument
253 channel_by_id(struct ssh *ssh, int id) in channel_by_id() argument
288 channel_lookup(struct ssh *ssh, int id) in channel_lookup() argument
338 channel_clear_timeouts(struct ssh *ssh) in channel_clear_timeouts() argument
807 channel_free_all(struct ssh *ssh) in channel_free_all() argument
840 channel_close_all(struct ssh *ssh) in channel_close_all() argument
902 channel_still_open(struct ssh *ssh) in channel_still_open() argument
945 channel_tty_open(struct ssh *ssh) in channel_tty_open() argument
962 channel_find_open(struct ssh *ssh) in channel_find_open() argument
1044 channel_open_message(struct ssh *ssh) in channel_open_message() argument
[all …]
H A Dnchan.c113 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed() argument
129 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty() argument
151 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty() argument
172 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow() argument
184 chan_send_eof2(struct ssh *ssh, Channel *c) in chan_send_eof2() argument
207 chan_send_close2(struct ssh *ssh, Channel *c) in chan_send_close2() argument
230 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2() argument
255 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof() argument
268 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose() argument
308 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed() argument
[all …]
H A Dsshconnect2.c345 int (*userauth)(struct ssh *ssh);
346 void (*cleanup)(struct ssh *ssh);
525 userauth(struct ssh *ssh, char *authlist) in userauth() argument
756 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() argument
812 userauth_gssapi_cleanup(struct ssh *ssh) in userauth_gssapi_cleanup() argument
1020 userauth_none(struct ssh *ssh) in userauth_none() argument
1036 userauth_passwd(struct ssh *ssh) in userauth_passwd() argument
1831 pubkey_cleanup(struct ssh *ssh) in pubkey_cleanup() argument
1859 userauth_pubkey(struct ssh *ssh) in userauth_pubkey() argument
1911 userauth_kbdint(struct ssh *ssh) in userauth_kbdint() argument
[all …]
H A Dclientloop.c169 static void client_init_dispatch(struct ssh *ssh);
246 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time() argument
461 client_check_window_change(struct ssh *ssh) in client_check_window_change() argument
496 server_alive_check(struct ssh *ssh) in server_alive_check() argument
516 send_chaff(struct ssh *ssh) in send_chaff() argument
791 client_process_net_input(struct ssh *ssh) in client_process_net_input() argument
985 process_cmdline(struct ssh *ssh) in process_cmdline() argument
1171 process_escapes(struct ssh *ssh, Channel *c, in process_escapes() argument
1765 client_request_forwarded_streamlocal(struct ssh *ssh, in client_request_forwarded_streamlocal() argument
2470 client_input_hostkeys(struct ssh *ssh) in client_input_hostkeys() argument
[all …]
H A Dkex.c502 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch() argument
584 kex_maybe_send_ext_info(struct ssh *ssh) in kex_maybe_send_ext_info() argument
591 if (!ssh->kex->ext_info_c && !ssh->kex->ext_info_s) in kex_maybe_send_ext_info()
621 kex_server_update_ext_info(struct ssh *ssh) in kex_server_update_ext_info() argument
641 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys() argument
820 kex_send_kexinit(struct ssh *ssh) in kex_send_kexinit() argument
1029 kex_start_rekex(struct ssh *ssh) in kex_start_rekex() argument
1178 kex_choose_conf(struct ssh *ssh, uint32_t seq) in kex_choose_conf() argument
1467 send_error(struct ssh *ssh, char *msg) in send_error() argument
1668 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh), in kex_exchange_identification()
[all …]
H A Dkexgexs.c62 kexgex_server(struct ssh *ssh) in kexgex_server() argument
71 input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_request() argument
73 struct kex *kex = ssh->kex; in input_kex_dh_gex_request()
81 if ((r = sshpkt_get_u32(ssh, &min)) != 0 || in input_kex_dh_gex_request()
84 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_request()
112 (r = sshpkt_send(ssh)) != 0) 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() argument
129 struct kex *kex = ssh->kex; in input_kex_dh_gex_init()
149 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_init()
193 (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()
175 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_reply()
[all …]
H A Dsession.c1484 child_close_fds(struct ssh *ssh) in child_close_fds() argument
1918 session_pty_req(struct ssh *ssh, Session *s) in session_pty_req() argument
2016 session_x11_req(struct ssh *ssh, Session *s) in session_x11_req() argument
2052 session_shell_req(struct ssh *ssh, Session *s) in session_shell_req() argument
2065 session_exec_req(struct ssh *ssh, Session *s) in session_exec_req() argument
2083 session_break_req(struct ssh *ssh, Session *s) in session_break_req() argument
2097 session_env_req(struct ssh *ssh, Session *s) in session_env_req() argument
2158 session_signal_req(struct ssh *ssh, Session *s) in session_signal_req() argument
2269 session_set_fds(struct ssh *ssh, Session *s, in session_set_fds() argument
2349 session_close_x11(struct ssh *ssh, int id) in session_close_x11() argument
[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 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
177 if (ssh->kex->ext_info_c) in do_authentication2()
181 ssh->authctxt = NULL; in do_authentication2()
185 input_service_request(int type, u_int32_t seq, struct ssh *ssh) in input_service_request() argument
270 input_userauth_request(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_request() argument
310 PRIVSEP(start_pam(ssh)); in input_userauth_request()
320 userauth_banner(ssh); in input_userauth_request()
364 userauth_finish(struct ssh *ssh, int authenticated, const char *packet_method, in userauth_finish() argument
[all …]
H A Dauth.h45 struct ssh;
110 int (*userauth)(struct ssh *, const char *);
138 int user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *,
170 void do_authentication2(struct ssh *);
175 int auth_root_allowed(struct ssh *, const char *);
185 int auth2_challenge(struct ssh *, char *);
186 void auth2_challenge_stop(struct ssh *);
190 int allowed_user(struct ssh *, struct passwd *);
216 void auth_restrict_session(struct ssh *);
222 void auth_debug_send(struct ssh *);
[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()
171 (r = sshpkt_get_end(ssh)) != 0) in input_kex_gen_reply()
258 kex_gen_server(struct ssh *ssh) in kex_gen_server() argument
266 input_kex_gen_init(int type, u_int32_t seq, struct ssh *ssh) in input_kex_gen_init() argument
268 struct kex *kex = ssh->kex; in input_kex_gen_init()
[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 Dkex.h138 struct ssh;
174 int (*kex[KEX_MAX])(struct ssh *);
197 int kex_ready(struct ssh *, char *[PROPOSAL_MAX]);
208 int kex_send_kexinit(struct ssh *);
213 int kex_send_newkeys(struct ssh *);
214 int kex_start_rekex(struct ssh *);
215 int kex_server_update_ext_info(struct ssh *);
218 int kexgex_client(struct ssh *);
219 int kexgex_server(struct ssh *);
220 int kex_gen_client(struct ssh *);
[all …]
/freebsd-14.2/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-14.2/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-14.2/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