Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd-12.1/crypto/openssh/
H A Dpacket.h52 struct ssh { struct
174 int sshpkt_start(struct ssh *ssh, u_char type);
175 int sshpkt_send(struct ssh *ssh);
184 int sshpkt_put_u8(struct ssh *ssh, u_char val);
185 int sshpkt_put_u32(struct ssh *ssh, u_int32_t val);
186 int sshpkt_put_u64(struct ssh *ssh, u_int64_t val);
194 int sshpkt_get_u8(struct ssh *ssh, u_char *valp);
195 int sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp);
196 int sshpkt_get_u64(struct ssh *ssh, u_int64_t *valp);
202 int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v);
[all …]
H A Dchannels.h75 struct ssh;
232 void channel_init_channels(struct ssh *ssh);
236 Channel *channel_by_id(struct ssh *, int);
238 Channel *channel_lookup(struct ssh *, int);
244 void channel_free_all(struct ssh *);
245 void channel_stop_listening(struct ssh *);
286 void channel_close_all(struct ssh *);
287 int channel_still_open(struct ssh *);
288 char *channel_open_message(struct ssh *);
289 int channel_find_open(struct ssh *);
[all …]
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() argument
344 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
649 ssh_packet_close(struct ssh *ssh) in ssh_packet_close() argument
1374 ssh_packet_read(struct ssh *ssh) in ssh_packet_read() argument
1839 if (ssh && ssh->kex && ssh->kex->failed_choice) { in sshpkt_fatal()
[all …]
H A Dssh_api.c76 struct ssh *ssh; in ssh_init() local
138 ssh_free(struct ssh *ssh) in ssh_free() argument
149 if (ssh->kex && ssh->kex->server) in ssh_free()
169 ssh_get_app_data(struct ssh *ssh) in ssh_get_app_data() argument
228 ssh_packet_next(struct ssh *ssh, u_char *typep) in ssh_packet_next() argument
287 ssh_output_ptr(struct ssh *ssh, size_t *len) in ssh_output_ptr() argument
296 ssh_output_consume(struct ssh *ssh, size_t len) in ssh_output_consume() argument
302 ssh_output_space(struct ssh *ssh, size_t len) in ssh_output_space() argument
308 ssh_input_space(struct ssh *ssh, size_t len) in ssh_input_space() argument
399 _ssh_exchange_banner(struct ssh *ssh) in _ssh_exchange_banner() argument
[all …]
H A Dopacket.c17 ssh_packet_start(struct ssh *ssh, u_char type) in ssh_packet_start() argument
26 ssh_packet_put_char(struct ssh *ssh, int value) in ssh_packet_put_char() argument
36 ssh_packet_put_int(struct ssh *ssh, u_int value) in ssh_packet_put_int() argument
45 ssh_packet_put_int64(struct ssh *ssh, u_int64_t value) in ssh_packet_put_int64() argument
63 ssh_packet_put_cstring(struct ssh *ssh, const char *str) in ssh_packet_put_cstring() argument
83 ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value) in ssh_packet_put_bignum2() argument
105 ssh_packet_send(struct ssh *ssh) in ssh_packet_send() argument
114 ssh_packet_get_char(struct ssh *ssh) in ssh_packet_get_char() argument
125 ssh_packet_get_int(struct ssh *ssh) in ssh_packet_get_int() argument
136 ssh_packet_get_int64(struct ssh *ssh) in ssh_packet_get_int64() 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.c52 static int input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh);
53 static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
54 static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
62 userauth_gssapi(struct ssh *ssh) in userauth_gssapi() argument
138 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token() argument
166 if ((r = sshpkt_start(ssh, in input_gssapi_token()
178 if ((r = sshpkt_start(ssh, in input_gssapi_token()
191 ssh_dispatch_set(ssh, in input_gssapi_token()
202 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok() argument
246 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() argument
[all …]
H A Dchannels.c226 channel_init_channels(struct ssh *ssh) in channel_init_channels() argument
245 channel_by_id(struct ssh *ssh, int id) in channel_by_id() argument
280 channel_lookup(struct ssh *ssh, int id) in channel_lookup() argument
643 channel_free_all(struct ssh *ssh) in channel_free_all() argument
657 channel_close_all(struct ssh *ssh) in channel_close_all() argument
670 channel_stop_listening(struct ssh *ssh) in channel_stop_listening() argument
719 channel_still_open(struct ssh *ssh) in channel_still_open() argument
762 channel_find_open(struct ssh *ssh) in channel_find_open() argument
808 channel_open_message(struct ssh *ssh) in channel_open_message() argument
2602 channel_output_poll(struct ssh *ssh) argument
[all …]
H A Dnchan.c108 chan_read_failed(struct ssh *ssh, Channel *c) in chan_read_failed() argument
124 chan_ibuf_empty(struct ssh *ssh, Channel *c) in chan_ibuf_empty() argument
146 chan_obuf_empty(struct ssh *ssh, Channel *c) in chan_obuf_empty() argument
167 chan_rcvd_eow(struct ssh *ssh, Channel *c) in chan_rcvd_eow() argument
179 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
227 chan_send_eow2(struct ssh *ssh, Channel *c) in chan_send_eow2() argument
252 chan_rcvd_ieof(struct ssh *ssh, Channel *c) in chan_rcvd_ieof() argument
265 chan_rcvd_oclose(struct ssh *ssh, Channel *c) in chan_rcvd_oclose() argument
303 chan_write_failed(struct ssh *ssh, Channel *c) in chan_write_failed() argument
[all …]
H A Dserverloop.c180 client_alive_check(struct ssh *ssh) in client_alive_check() argument
214 wait_until_can_do_something(struct ssh *ssh, in wait_until_can_do_something() argument
320 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh)); in process_input()
351 process_buffered_input_packets(struct ssh *ssh) in process_buffered_input_packets() argument
357 collect_children(struct ssh *ssh) in collect_children() argument
379 server_loop2(struct ssh *ssh, Authctxt *authctxt) in server_loop2() argument
495 server_request_direct_streamlocal(struct ssh *ssh) in server_request_direct_streamlocal() argument
532 server_request_tun(struct ssh *ssh) in server_request_tun() argument
593 server_request_session(struct ssh *ssh) in server_request_session() argument
705 if ((ndx = ssh->kex->host_key_index(key, 1, ssh)) == -1) { in server_input_hostkeys_prove()
[all …]
H A Dsshconnect2.c96 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) in verify_host_key_callback() argument
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() argument
914 struct ssh *ssh = active_state; /* XXX */ in userauth_none() local
930 struct ssh *ssh = active_state; /* XXX */ in userauth_passwd() local
1061 if (ssh == NULL || ssh->kex->server_sig_algs == NULL || 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 Dauth2-chall.c194 auth2_challenge(struct ssh *ssh, char *devs) in auth2_challenge() argument
205 return auth2_challenge_start(ssh); in auth2_challenge()
210 auth2_challenge_stop(struct ssh *ssh) in auth2_challenge_stop() argument
223 auth2_challenge_start(struct ssh *ssh) in auth2_challenge_start() argument
232 auth2_challenge_stop(ssh); in auth2_challenge_start()
239 auth2_challenge_stop(ssh); in auth2_challenge_start()
243 auth2_challenge_stop(ssh); in auth2_challenge_start()
254 send_userauth_info_request(struct ssh *ssh) in send_userauth_info_request() argument
291 input_userauth_info_response(int type, u_int32_t seq, struct ssh *ssh) in input_userauth_info_response() argument
351 auth2_challenge_stop(ssh); in input_userauth_info_response()
[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()
83 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_request()
111 (r = sshpkt_send(ssh)) != 0) 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() argument
128 struct kex *kex = ssh->kex; in input_kex_dh_gex_init()
144 kex->hostkey_nid, ssh); in input_kex_dh_gex_init()
146 kex->hostkey_nid, ssh); in input_kex_dh_gex_init()
237 (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()
94 input_kex_dh_gex_group(int type, u_int32_t seq, struct ssh *ssh) in input_kex_dh_gex_group() argument
96 struct kex *kex = ssh->kex; in input_kex_dh_gex_group()
110 (r = sshpkt_get_end(ssh)) != 0) in input_kex_dh_gex_group()
129 (r = sshpkt_send(ssh)) != 0) 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() argument
150 struct kex *kex = ssh->kex; in input_kex_dh_gex_reply()
216 if (ssh->compat & SSH_OLD_DHGEX) in input_kex_dh_gex_reply()
[all …]
H A Dkex.c379 kex_protocol_error(int type, u_int32_t seq, struct ssh *ssh) in kex_protocol_error() argument
392 kex_reset_dispatch(struct ssh *ssh) in kex_reset_dispatch() argument
399 kex_send_ext_info(struct ssh *ssh) in kex_send_ext_info() argument
421 kex_send_newkeys(struct ssh *ssh) in kex_send_newkeys() argument
477 kex_input_newkeys(int type, u_int32_t seq, struct ssh *ssh) in kex_input_newkeys() argument
499 kex_send_kexinit(struct ssh *ssh) in kex_send_kexinit() argument
529 kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh) in kex_input_kexinit() argument
665 kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX]) in kex_setup() argument
669 if ((r = kex_new(ssh, proposal, &ssh->kex)) != 0) in kex_setup()
684 kex_start_rekex(struct ssh *ssh) in kex_start_rekex() 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);
54 void client_filter_cleanup(struct ssh *, int, void *);
58 typedef void global_confirm_cb(struct ssh *, int, u_int32_t, void *);
63 void client_expect_confirm(struct ssh *, int, const char *,
79 void muxserver_listen(struct ssh *);
81 void mux_exit_message(struct ssh *, Channel *, int);
[all …]
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() argument
1935 session_pty_req(struct ssh *ssh, Session *s) in session_pty_req() argument
2026 session_x11_req(struct ssh *ssh, Session *s) in session_x11_req() argument
2058 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
2077 session_break_req(struct ssh *ssh, Session *s) in session_break_req() argument
2089 session_env_req(struct ssh *ssh, Session *s) in session_env_req() argument
2185 session_set_fds(struct ssh *ssh, Session *s, in session_set_fds() argument
2265 session_close_x11(struct ssh *ssh, int id) in session_close_x11() argument
[all …]
H A Dkex.h129 struct ssh;
160 int (*kex[KEX_MAX])(struct ssh *);
184 int kex_send_kexinit(struct ssh *);
189 int kex_send_newkeys(struct ssh *);
190 int kex_start_rekex(struct ssh *);
192 int kexdh_client(struct ssh *);
193 int kexdh_server(struct ssh *);
194 int kexgex_client(struct ssh *);
195 int kexgex_server(struct ssh *);
196 int kexecdh_client(struct ssh *);
[all …]
H A Dclientloop.c234 set_control_persist_exit_time(struct ssh *ssh) in set_control_persist_exit_time() argument
278 client_x11_get_proto(struct ssh *ssh, const char *display, in client_x11_get_proto() argument
438 client_check_window_change(struct ssh *ssh) in client_check_window_change() argument
489 client_wait_until_can_do_something(struct ssh *ssh, in client_wait_until_can_do_something() argument
756 process_cmdline(struct ssh *ssh) in process_cmdline() argument
933 process_escapes(struct ssh *ssh, Channel *c, in process_escapes() argument
1193 client_filter_cleanup(struct ssh *ssh, int cid, void *ctx) in client_filter_cleanup() argument
1209 client_channel_closed(struct ssh *ssh, int id, void *arg) in client_channel_closed() argument
1525 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
[all …]
H A Dkexc25519c.c47 input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh);
50 kexc25519_client(struct ssh *ssh) in kexc25519_client() argument
52 struct kex *kex = ssh->kex; in kexc25519_client()
63 (r = sshpkt_send(ssh)) != 0) in kexc25519_client()
72 input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh) in input_kex_c25519_reply() argument
74 struct kex *kex = ssh->kex; in input_kex_c25519_reply()
89 if ((r = sshpkt_get_string(ssh, &server_host_key_blob, in input_kex_c25519_reply()
100 if (kex->verify_host_key(server_host_key, ssh) == -1) { in input_kex_c25519_reply()
109 (r = sshpkt_get_end(ssh)) != 0) in input_kex_c25519_reply()
144 kex->hostkey_alg, ssh->compat)) != 0) in input_kex_c25519_reply()
[all …]
/freebsd-12.1/crypto/openssh/regress/unittests/sshkey/
H A Dmktestdata.sh102 ssh-keygen -pf rsa_1_pw -N "$PW"
103 ssh-keygen -pf dsa_1_pw -N "$PW"
104 ssh-keygen -pf ecdsa_1_pw -N "$PW"
105 ssh-keygen -pf ed25519_1_pw -N "$PW"
106 ssh-keygen -opf rsa_n_pw -N "$PW"
107 ssh-keygen -opf dsa_n_pw -N "$PW"
108 ssh-keygen -opf ecdsa_n_pw -N "$PW"
118 ssh-keygen -s rsa_2 -I hugo -n user1,user2 \
121 ssh-keygen -s rsa_2 -I hugo -n user1,user2 \
124 ssh-keygen -s rsa_2 -I hugo -n user1,user2 \
[all …]
/freebsd-12.1/crypto/openssh/regress/
H A Dhostkey-rotate.sh62 check_key_present ssh-rsa || fail "didn't learn keys"
74 mv $OBJ/hkr.ssh-rsa.pub $OBJ/hkr.ssh-rsa.pub.old
75 rm -f $OBJ/hkr.ssh-rsa
76 ${SSHKEYGEN} -qt ssh-rsa -f $OBJ/hkr.ssh-rsa -N '' || fatal "ssh-keygen $k"
80 check_key_present ssh-rsa $OBJ/hkr.ssh-rsa.pub.old && fail "old key present"
85 ${SSHKEYGEN} -qt ssh-rsa -f $OBJ/hkr.ssh-rsa-new -N '' || fatal "ssh-keygen $k"
92 check_key_present ssh-rsa $OBJ/hkr.ssh-rsa-new.pub || fail "new key missing"
97 mv $OBJ/hkr.ssh-rsa.pub $OBJ/hkr.ssh-rsa.pub.old
98 mv $OBJ/hkr.ssh-rsa-new.pub $OBJ/hkr.ssh-rsa.pub
99 mv $OBJ/hkr.ssh-rsa-new $OBJ/hkr.ssh-rsa
[all …]
/freebsd-12.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
88 - Made symlink to gnome-ssh-askpass called ssh-askpass
178 /usr/bin/ssh-keygen -A
183 %verify_permissions -e /etc/ssh/sshd_config -e /etc/ssh/ssh_config -e /usr/bin/ssh
212 %attr(4711,root,root) %{_libdir}/ssh/ssh-keysign
213 %attr(0755,root,root) %{_libdir}/ssh/ssh-pkcs11-helper
236 %attr(0755,root,root) %{_libdir}/ssh/ssh-askpass
[all …]
/freebsd-12.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-askpass2.c
18 gnome-ssh-askpass2.c -o gnome-ssh-askpass3 \
22 rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]

12345678910>>...12