Searched refs:ssh (Results 1 - 25 of 114) sorted by relevance

12345

/freebsd-10-stable/crypto/openssh/
H A Dssh_api.h29 #include "ssh.h"
40 * ssh_init() create a ssh connection object with given (optional)
43 int ssh_init(struct ssh **, int is_server, struct kex_params *kex_params);
46 * release ssh connection state.
48 void ssh_free(struct ssh *);
53 void ssh_set_app_data(struct ssh *, void *);
54 void *ssh_get_app_data(struct ssh *);
57 * ssh_add_hostkey() registers a private/public hostkey for an ssh
64 int ssh_add_hostkey(struct ssh *ssh, struc
[all...]
H A Dpacket.h13 * called by a name other than "ssh" or "Secure Shell".
52 struct ssh { struct
81 struct ssh *ssh_alloc_session_state(void);
82 struct ssh *ssh_packet_set_connection(struct ssh *, int, int);
83 void ssh_packet_set_timeout(struct ssh *, int, int);
84 int ssh_packet_stop_discard(struct ssh *);
85 int ssh_packet_connection_af(struct ssh *);
86 void ssh_packet_set_nonblocking(struct ssh *);
87 int ssh_packet_get_connection_in(struct ssh *);
[all...]
H A Ddispatch.c44 struct ssh *ssh = active_state; /* XXX */ local
50 if ((r = sshpkt_start(ssh, SSH2_MSG_UNIMPLEMENTED)) != 0 ||
51 (r = sshpkt_put_u32(ssh, seq)) != 0 ||
52 (r = sshpkt_send(ssh)) != 0 ||
53 (r = ssh_packet_write_wait(ssh)) != 0)
54 sshpkt_fatal(ssh, __func__, r);
59 dispatch_protocol_ignore(int type, u_int32_t seq, void *ssh) argument
66 ssh_dispatch_init(struct ssh *ssh, dispatch_f argument
74 ssh_dispatch_range(struct ssh *ssh, u_int from, u_int to, dispatch_fn *fn) argument
86 ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn) argument
92 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done, void *ctxt) argument
135 ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done, void *ctxt) argument
[all...]
H A Dopacket.c9 struct ssh *active_state, *backup_state;
14 ssh_packet_start(struct ssh *ssh, u_char type) argument
18 if ((r = sshpkt_start(ssh, type)) != 0)
23 ssh_packet_put_char(struct ssh *ssh, int value) argument
28 if ((r = sshpkt_put_u8(ssh, ch)) != 0)
33 ssh_packet_put_int(struct ssh *ssh, u_int value) argument
37 if ((r = sshpkt_put_u32(ssh, valu
42 ssh_packet_put_int64(struct ssh *ssh, u_int64_t value) argument
51 ssh_packet_put_string(struct ssh *ssh, const void *buf, u_int len) argument
60 ssh_packet_put_cstring(struct ssh *ssh, const char *str) argument
69 ssh_packet_put_raw(struct ssh *ssh, const void *buf, u_int len) argument
79 ssh_packet_put_bignum(struct ssh *ssh, BIGNUM * value) argument
90 ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value) argument
100 ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve, const EC_POINT *point) argument
112 ssh_packet_send(struct ssh *ssh) argument
121 ssh_packet_get_char(struct ssh *ssh) argument
132 ssh_packet_get_int(struct ssh *ssh) argument
143 ssh_packet_get_int64(struct ssh *ssh) argument
155 ssh_packet_get_bignum(struct ssh *ssh, BIGNUM * value) argument
166 ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value) argument
176 ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point) argument
187 ssh_packet_get_string(struct ssh *ssh, u_int *length_ptr) argument
201 ssh_packet_get_string_ptr(struct ssh *ssh, u_int *length_ptr) argument
215 ssh_packet_get_cstring(struct ssh *ssh, u_int *length_ptr) argument
[all...]
H A Dssh_api.c34 int _ssh_exchange_banner(struct ssh *);
35 int _ssh_send_banner(struct ssh *, char **);
36 int _ssh_read_banner(struct ssh *, char **);
37 int _ssh_order_hostkeyalgs(struct ssh *);
38 int _ssh_verify_host_key(struct sshkey *, struct ssh *);
39 struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
40 struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
73 ssh_init(struct ssh **sshp, int is_server, struct kex_params *kex_params)
76 struct ssh *ssh; local
138 ssh_free(struct ssh *ssh) argument
163 ssh_set_app_data(struct ssh *ssh, void *app_data) argument
169 ssh_get_app_data(struct ssh *ssh) argument
176 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) argument
210 ssh_set_verify_host_key_callback(struct ssh *ssh, int (*cb)(struct sshkey *, struct ssh *)) argument
222 ssh_input_append(struct ssh *ssh, const u_char *data, size_t len) argument
228 ssh_packet_next(struct ssh *ssh, u_char *typep) argument
269 ssh_packet_payload(struct ssh *ssh, size_t *lenp) argument
275 ssh_packet_put(struct ssh *ssh, int type, const u_char *data, size_t len) argument
287 ssh_output_ptr(struct ssh *ssh, size_t *len) argument
296 ssh_output_consume(struct ssh *ssh, size_t len) argument
302 ssh_output_space(struct ssh *ssh, size_t len) argument
308 ssh_input_space(struct ssh *ssh, size_t len) argument
315 _ssh_read_banner(struct ssh *ssh, char **bannerp) argument
384 _ssh_send_banner(struct ssh *ssh, char **bannerp) argument
400 _ssh_exchange_banner(struct ssh *ssh) argument
439 _ssh_host_public_key(int type, int nid, struct ssh *ssh) argument
454 _ssh_host_private_key(int type, int nid, struct ssh *ssh) argument
469 _ssh_verify_host_key(struct sshkey *hostkey, struct ssh *ssh) argument
484 _ssh_order_hostkeyalgs(struct ssh *ssh) argument
[all...]
H A Dpacket.c13 * called by a name other than "ssh" or "Secure Shell".
86 #include "ssh.h"
224 struct ssh *
227 struct ssh *ssh = NULL; local
230 if ((ssh = calloc(1, sizeof(*ssh))) == NULL ||
238 TAILQ_INIT(&ssh->private_keys);
239 TAILQ_INIT(&ssh->public_keys);
251 ssh
267 ssh_packet_is_rekeying(struct ssh *ssh) argument
278 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) argument
316 ssh_packet_set_timeout(struct ssh *ssh, int timeout, int count) argument
331 ssh_packet_stop_discard(struct ssh *ssh) argument
358 ssh_packet_start_discard(struct ssh *ssh, struct sshenc *enc, struct sshmac *mac, size_t mac_already, u_int discard) argument
386 ssh_packet_connection_is_on_socket(struct ssh *ssh) argument
416 ssh_packet_get_bytes(struct ssh *ssh, u_int64_t *ibytes, u_int64_t *obytes) argument
425 ssh_packet_connection_af(struct ssh *ssh) argument
445 ssh_packet_set_nonblocking(struct ssh *ssh) argument
457 ssh_packet_get_connection_in(struct ssh *ssh) argument
465 ssh_packet_get_connection_out(struct ssh *ssh) argument
476 ssh_remote_ipaddr(struct ssh *ssh) argument
500 ssh_remote_port(struct ssh *ssh) argument
512 ssh_local_ipaddr(struct ssh *ssh) argument
521 ssh_local_port(struct ssh *ssh) argument
530 ssh_packet_close(struct ssh *ssh) argument
590 ssh_packet_set_protocol_flags(struct ssh *ssh, u_int protocol_flags) argument
598 ssh_packet_get_protocol_flags(struct ssh *ssh) argument
609 ssh_packet_init_compression(struct ssh *ssh) argument
618 start_compression_out(struct ssh *ssh, int level) argument
638 start_compression_in(struct ssh *ssh) argument
655 ssh_packet_start_compression(struct ssh *ssh, int level) argument
671 compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) argument
717 uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) argument
765 ssh_packet_get_compress_state(struct sshbuf *m, struct ssh *ssh) argument
793 ssh_packet_set_compress_state(struct ssh *ssh, struct sshbuf *m) argument
831 ssh_packet_set_compress_hooks(struct ssh *ssh, void *ctx, void *(*allocfunc)(void *, u_int, u_int), void (*freefunc)(void *, void *)) argument
850 ssh_packet_set_encryption_key(struct ssh *ssh, const u_char *key, u_int keylen, int number) argument
888 ssh_packet_send1(struct ssh *ssh) argument
976 ssh_set_newkeys(struct ssh *ssh, int mode) argument
1080 ssh_packet_need_rekeying(struct ssh *ssh, u_int outbound_packet_len) argument
1129 ssh_packet_enable_delayed_compress(struct ssh *ssh) argument
1179 ssh_packet_send2_wrapped(struct ssh *ssh) argument
1349 ssh_packet_send2(struct ssh *ssh) argument
1434 ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument
1527 ssh_packet_read(struct ssh *ssh) argument
1543 ssh_packet_read_expect(struct ssh *ssh, u_int expected_type) argument
1570 ssh_packet_read_poll1(struct ssh *ssh, u_char *typep) argument
1708 ssh_packet_read_poll2(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument
1935 ssh_packet_read_poll_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) argument
2023 ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len) argument
2044 ssh_packet_remaining(struct ssh *ssh) argument
2058 ssh_packet_send_debug(struct ssh *ssh, const char *fmt,...) argument
2092 sshpkt_fatal(struct ssh *ssh, const char *tag, int r) argument
2137 ssh_packet_disconnect(struct ssh *ssh, const char *fmt,...) argument
2179 ssh_packet_write_poll(struct ssh *ssh) argument
2207 ssh_packet_write_wait(struct ssh *ssh) argument
2266 ssh_packet_have_data_to_write(struct ssh *ssh) argument
2274 ssh_packet_not_very_much_data_to_write(struct ssh *ssh) argument
2283 ssh_packet_set_tos(struct ssh *ssh, int tos) argument
2314 ssh_packet_set_interactive(struct ssh *ssh, int interactive, int qos_interactive, int qos_bulk) argument
2336 ssh_packet_is_interactive(struct ssh *ssh) argument
2342 ssh_packet_set_maxsize(struct ssh *ssh, u_int s) argument
2362 ssh_packet_inc_alive_timeouts(struct ssh *ssh) argument
2368 ssh_packet_set_alive_timeouts(struct ssh *ssh, int ka) argument
2374 ssh_packet_get_maxsize(struct ssh *ssh) argument
2391 ssh_packet_send_ignore(struct ssh *ssh, int nbytes) argument
2410 ssh_packet_set_rekey_limits(struct ssh *ssh, u_int64_t bytes, time_t seconds) argument
2419 ssh_packet_get_rekey_timeout(struct ssh *ssh) argument
2429 ssh_packet_set_server(struct ssh *ssh) argument
2435 ssh_packet_set_authenticated(struct ssh *ssh) argument
2441 ssh_packet_get_input(struct ssh *ssh) argument
2447 ssh_packet_get_output(struct ssh *ssh) argument
2454 ssh_packet_set_postauth(struct ssh *ssh) argument
2498 newkeys_to_blob(struct sshbuf *m, struct ssh *ssh, int mode) argument
2545 ssh_packet_get_state(struct ssh *ssh, struct sshbuf *m) argument
2606 newkeys_from_blob(struct sshbuf *m, struct ssh *ssh, int mode) argument
2720 ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m) argument
2802 sshpkt_put(struct ssh *ssh, const void *v, size_t len) argument
2808 sshpkt_putb(struct ssh *ssh, const struct sshbuf *b) argument
2814 sshpkt_put_u8(struct ssh *ssh, u_char val) argument
2820 sshpkt_put_u32(struct ssh *ssh, u_int32_t val) argument
2826 sshpkt_put_u64(struct ssh *ssh, u_int64_t val) argument
2832 sshpkt_put_string(struct ssh *ssh, const void *v, size_t len) argument
2838 sshpkt_put_cstring(struct ssh *ssh, const void *v) argument
2844 sshpkt_put_stringb(struct ssh *ssh, const struct sshbuf *v) argument
2852 sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g) argument
2860 sshpkt_put_bignum1(struct ssh *ssh, const BIGNUM *v) argument
2867 sshpkt_put_bignum2(struct ssh *ssh, const BIGNUM *v) argument
2876 sshpkt_get(struct ssh *ssh, void *valp, size_t len) argument
2882 sshpkt_get_u8(struct ssh *ssh, u_char *valp) argument
2888 sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp) argument
2894 sshpkt_get_u64(struct ssh *ssh, u_int64_t *valp) argument
2900 sshpkt_get_string(struct ssh *ssh, u_char **valp, size_t *lenp) argument
2906 sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp) argument
2912 sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp) argument
2920 sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g) argument
2928 sshpkt_get_bignum1(struct ssh *ssh, BIGNUM *v) argument
2935 sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v) argument
2942 sshpkt_get_end(struct ssh *ssh) argument
2950 sshpkt_ptr(struct ssh *ssh, size_t *lenp) argument
2960 sshpkt_start(struct ssh *ssh, u_char type) argument
2976 sshpkt_send(struct ssh *ssh) argument
2985 sshpkt_disconnect(struct ssh *ssh, const char *fmt,...) argument
3013 sshpkt_add_padding(struct ssh *ssh, u_char pad) argument
[all...]
H A Ddispatch.h37 struct ssh;
43 void ssh_dispatch_init(struct ssh *, dispatch_fn *);
44 void ssh_dispatch_set(struct ssh *, int, dispatch_fn *);
45 void ssh_dispatch_range(struct ssh *, u_int, u_int, dispatch_fn *);
46 int ssh_dispatch_run(struct ssh *, int, volatile sig_atomic_t *, void *);
47 void ssh_dispatch_run_fatal(struct ssh *, int, volatile sig_atomic_t *, void *);
H A Dkexgexc.c58 kexgex_client(struct ssh *ssh) argument
60 struct kex *kex = ssh->kex;
72 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_REQUEST)) != 0 ||
73 (r = sshpkt_put_u32(ssh, kex->min)) != 0 ||
74 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 ||
75 (r = sshpkt_put_u32(ssh, kex->max)) != 0 ||
76 (r = sshpkt_send(ssh)) != 0)
84 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_GROUP,
94 struct ssh *ss local
148 struct ssh *ssh = ctxt; local
[all...]
H A Dkex.h127 struct ssh;
152 int (*verify_host_key)(struct sshkey *, struct ssh *);
153 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
154 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
155 int (*host_key_index)(struct sshkey *, int, struct ssh *);
158 int (*kex[KEX_MAX])(struct ssh *);
173 int kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **);
174 int kex_setup(struct ssh *, char *[PROPOSAL_MAX]);
182 int kex_send_kexinit(struct ssh *);
185 int kex_derive_keys(struct ssh *, u_cha
[all...]
H A Dkexgexs.c50 #include "ssh-gss.h"
61 kexgex_server(struct ssh *ssh) argument
63 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_REQUEST,
72 struct ssh *ssh = ctxt; local
73 struct kex *kex = ssh->kex;
78 if ((r = sshpkt_get_u32(ssh, &min)) != 0 ||
79 (r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
80 (r = sshpkt_get_u32(ssh,
125 struct ssh *ssh = ctxt; local
[all...]
H A Dkexecdhs.c53 kexecdh_server(struct ssh *ssh) argument
56 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_INIT, &input_kex_ecdh_init);
63 struct ssh *ssh = ctxt; local
64 struct kex *kex = ssh->kex;
99 kex->hostkey_nid, ssh);
101 kex->hostkey_nid, ssh);
110 if ((r = sshpkt_get_ec(ssh, client_public, group)) != 0 ||
111 (r = sshpkt_get_end(ssh)) !
[all...]
H A Dkexc25519c.c50 kexc25519_client(struct ssh *ssh) argument
52 struct kex *kex = ssh->kex;
60 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_ECDH_INIT)) != 0 ||
61 (r = sshpkt_put_string(ssh, kex->c25519_client_pubkey,
63 (r = sshpkt_send(ssh)) != 0)
67 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_REPLY, &input_kex_c25519_reply);
74 struct ssh *ssh = ctxt; local
75 struct kex *kex = ssh
[all...]
/freebsd-10-stable/tools/tools/nanobsd/Files/root/
H A Dsave_sshkeys34 mkdir -p /cfg/ssh
36 cd /etc/ssh
37 cp ssh_host_* /cfg/ssh
/freebsd-10-stable/tools/tools/nanobsd/pcengines/Files/root/
H A Dsave_sshkeys34 mkdir -p /cfg/ssh
36 cd /etc/ssh
37 cp ssh_host_* /cfg/ssh
/freebsd-10-stable/crypto/openssh/contrib/redhat/
H A Dgnome-ssh-askpass.csh1 setenv SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass
H A Dgnome-ssh-askpass.sh1 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
/freebsd-10-stable/usr.bin/ssh-copy-id/
H A DMakefile3 SCRIPTS= ssh-copy-id.sh
4 MAN= ssh-copy-id.1
/freebsd-10-stable/crypto/openssh/contrib/
H A DMakefile4 @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
6 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
[all...]
/freebsd-10-stable/secure/usr.bin/
H A DMakefile9 SUBDIR+=scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan
/freebsd-10-stable/crypto/openssh/regress/
H A Dhostkey-rotate.sh7 HOSTKEY_TYPES="ecdsa-sha2-nistp256 ssh-ed25519 ssh-rsa ssh-dss"
19 ${SSHKEYGEN} -qt $k -f $OBJ/hkr.$k -N '' || fatal "ssh-keygen $k"
27 # All ssh should succeed in this test
28 ${SSH} -F $OBJ/ssh_proxy "$@" x true || fail "ssh $@ failed"
52 dossh -oHostKeyAlgorithms=ssh-ed25519 -oStrictHostKeyChecking=no
55 check_key_present ssh-ed25519 || fail "unstrict didn't learn key"
62 check_key_present ssh-rsa || fail "didn't learn keys"
74 mv $OBJ/hkr.ssh
[all...]
/freebsd-10-stable/secure/libexec/ssh-pkcs11-helper/
H A DMakefile5 PROG= ssh-pkcs11-helper
6 SRCS= ssh-pkcs11.c ssh-pkcs11-helper.c
7 MAN= ssh-pkcs11-helper.8
13 USEPRIVATELIB= ssh
/freebsd-10-stable/secure/libexec/ssh-keysign/
H A DMakefile5 PROG= ssh-keysign
6 SRCS= ssh-keysign.c readconf.c
7 MAN= ssh-keysign.8
14 USEPRIVATELIB= ssh
/freebsd-10-stable/usr.sbin/pc-sysinstall/backend-query/
H A Dsetup-ssh-keys.sh28 # Script which sets up password-less logins for ssh host
39 echo "ERROR: Usage setup-ssh-keys <user> <host> <port>"
48 if [ ! -e ".ssh/id_rsa.pub" ]
50 mkdir .ssh >/dev/null 2>/dev/null
51 ssh-keygen -q -t rsa -N '' -f .ssh/id_rsa
55 if [ ! -e ".ssh/id_rsa.pub" ]
57 echo "ERROR: Failed creating .ssh/id_rsa.pub"
62 PUBKEY="`cat .ssh/id_rsa.pub`"
64 ssh
[all...]
/freebsd-10-stable/secure/libexec/
H A DMakefile7 SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper
/freebsd-10-stable/crypto/openssh/regress/unittests/sshkey/
H A Dmktestdata.sh10 ssh-keygen -f $_in -e -m pkcs8 | \
14 # XXX need conversion support in ssh-keygen for the other params
97 ssh-keygen -t rsa1 -b 1024 -C "RSA1 test key #1" -N "" -f rsa1_1
98 ssh-keygen -t rsa -b 1024 -C "RSA test key #1" -N "" -f rsa_1
99 ssh-keygen -t dsa -b 1024 -C "DSA test key #1" -N "" -f dsa_1
100 ssh-keygen -t ecdsa -b 256 -C "ECDSA test key #1" -N "" -f ecdsa_1
101 ssh-keygen -t ed25519 -C "ED25519 test key #1" -N "" -f ed25519_1
103 ssh-keygen -t rsa1 -b 2048 -C "RSA1 test key #2" -N "" -f rsa1_2
104 ssh-keygen -t rsa -b 2048 -C "RSA test key #2" -N "" -f rsa_2
105 ssh
[all...]

Completed in 107 milliseconds

12345