Home
last modified time | relevance | path

Searched refs:sshkey (Results 1 – 25 of 63) sorted by relevance

123

/dragonfly/crypto/openssh/
H A Dsshkey.h120 struct sshkey *signature_key;
125 struct sshkey { struct
167 struct sshkey *sshkey_new(int); argument
168 void sshkey_free(struct sshkey *);
170 const struct sshkey *);
171 int sshkey_equal(const struct sshkey *, const struct sshkey *);
184 int sshkey_from_private(const struct sshkey *, struct sshkey **);
200 int sshkey_drop_cert(struct sshkey *);
201 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
212 int sshkey_certify(struct sshkey *, struct sshkey *,
[all …]
H A Dsshkey-xmss.h33 size_t sshkey_xmss_pklen(const struct sshkey *);
34 size_t sshkey_xmss_sklen(const struct sshkey *);
35 int sshkey_xmss_init(struct sshkey *, const char *);
36 void sshkey_xmss_free_state(struct sshkey *);
37 int sshkey_xmss_generate_private_key(struct sshkey *, u_int);
47 int sshkey_xmss_siglen(const struct sshkey *, size_t *);
48 void *sshkey_xmss_params(const struct sshkey *);
49 void *sshkey_xmss_bds_state(const struct sshkey *);
50 int sshkey_xmss_get_state(const struct sshkey *, int);
51 int sshkey_xmss_enable_maxsign(struct sshkey *, u_int32_t);
[all …]
H A Dauthfile.h31 struct sshkey;
36 int sshkey_save_private(struct sshkey *, const char *,
38 int sshkey_load_cert(const char *, struct sshkey **);
39 int sshkey_load_public(const char *, struct sshkey **, char **);
40 int sshkey_load_private(const char *, const char *, struct sshkey **, char **);
42 struct sshkey **);
44 struct sshkey **, char **);
46 struct sshkey **keyp, char **commentp);
48 int sshkey_in_file(struct sshkey *, const char *, int, int);
49 int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file);
[all …]
H A Dauth.h47 struct sshkey;
89 struct sshkey **prev_keys;
93 struct sshkey *auth_method_key;
137 const char *, char *, struct sshkey *);
140 int auth2_key_already_used(Authctxt *, const struct sshkey *);
147 void auth2_record_key(Authctxt *, int, const struct sshkey *);
196 int auth_key_is_revoked(struct sshkey *);
205 struct sshkey *get_hostkey_by_index(int);
206 struct sshkey *get_hostkey_public_by_index(int, struct ssh *);
209 int get_hostkey_index(struct sshkey *, int, struct ssh *);
[all …]
H A Dkrl.h40 struct sshkey;
49 const struct sshkey *ca_key, u_int64_t serial);
51 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi);
53 const struct sshkey *ca_key, const char *key_id);
54 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key);
57 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
59 struct sshkey **sign_keys, u_int nsign_keys);
61 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys);
62 int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key);
63 int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
H A Dsshsig.h22 struct sshkey;
26 typedef int sshsig_signer(struct sshkey *, u_char **, size_t *,
37 int sshsig_signb(struct sshkey *key, const char *hashalg,
49 struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details);
58 int sshsig_sign_fd(struct sshkey *key, const char *hashalg,
69 const char *sig_namespace, struct sshkey **sign_keyp,
88 int sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
99 int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);
104 int sshsig_find_principals(const char *path, const struct sshkey *sign_key,
H A Dauthfile.c68 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private()
119 struct sshkey **keyp, char **commentp) in sshkey_load_private_type()
145 struct sshkey **keyp, char **commentp) in sshkey_load_private()
153 struct sshkey **keyp, char **commentp) in sshkey_load_private_type_fd()
177 struct sshkey *pubkey = NULL; in sshkey_load_pubkey_from_private()
212 struct sshkey *k = NULL; in sshkey_try_load_public()
301 struct sshkey *pub = NULL; in sshkey_load_cert()
320 struct sshkey **keyp) in sshkey_load_private_cert()
322 struct sshkey *key = NULL, *cert = NULL; in sshkey_load_private_cert()
383 struct sshkey *pub = NULL; in sshkey_in_file()
[all …]
H A Dauthfd.h20 struct sshkey;
25 struct sshkey **keys;
35 struct sshkey **keys;
50 int ssh_add_identity_constrained(int sock, struct sshkey *key,
54 int ssh_agent_has_key(int sock, const struct sshkey *key);
55 int ssh_remove_identity(int sock, const struct sshkey *key);
62 int ssh_agent_sign(int sock, const struct sshkey *key,
66 int ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
H A Dkex.h157 struct sshkey *initial_hostkey;
163 int (*verify_host_key)(struct sshkey *, struct ssh *);
164 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
165 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
166 int (*host_key_index)(struct sshkey *, int, struct ssh *);
167 int (*sign)(struct ssh *, struct sshkey *, struct sshkey *,
197 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **);
198 int kex_verify_host_key(struct ssh *, struct sshkey *);
H A Dmonitor_wrap.h39 struct sshkey;
48 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
55 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
57 int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int,
60 const char *, struct sshkey *);
61 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
H A Dhostfile.h29 struct sshkey *key;
45 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *,
51 int hostfile_read_key(char **, u_int *, struct sshkey *);
53 const struct sshkey *, int);
56 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
101 struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
H A Dssh_api.c45 int _ssh_verify_host_key(struct sshkey *, struct ssh *);
46 struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
47 struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
48 int _ssh_host_key_sign(struct ssh *, struct sshkey *, struct sshkey *,
56 int mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
64 mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp, in mm_sshkey_sign()
186 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey()
188 struct sshkey *pubkey = NULL; in ssh_add_hostkey()
221 int (*cb)(struct sshkey *, struct ssh *)) in ssh_set_verify_host_key_callback() argument
466 struct sshkey *
[all …]
H A Dssh-sk.h22 struct sshkey;
35 struct sshkey *key;
53 struct sshkey **keyp, struct sshbuf *attest);
61 int sshsk_sign(const char *provider_path, struct sshkey *key,
H A Dsshkey.c572 struct sshkey *
575 struct sshkey *k; in sshkey_new()
733 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) in sshkey_equal_public()
816 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal()
1341 struct sshkey *k; in sshkey_read()
1745 struct sshkey *k; in sshkey_generate()
1794 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key) in sshkey_cert_copy()
1864 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) in sshkey_from_private()
1866 struct sshkey *n = NULL; in sshkey_from_private()
2942 sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, in sshkey_certify_custom()
[all …]
H A Dsshconnect.h29 struct sshkey **keys;
75 int verify_host_key(char *, struct sockaddr *, struct sshkey *,
89 void maybe_add_key_to_agent(const char *, struct sshkey *,
94 const struct sshkey *, const char *);
H A Dssh-pkcs11.h27 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
30 struct sshkey *
33 struct sshkey *
H A Dsshsig.c153 sshsig_wrap_sign(struct sshkey *key, const char *hashalg, in sshsig_wrap_sign()
295 struct sshkey *key = NULL; in sshsig_wrap_verify()
432 sshsig_signb(struct sshkey *key, const char *hashalg, in sshsig_signb()
460 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verifyb()
560 sshsig_sign_fd(struct sshkey *key, const char *hashalg, in sshsig_sign_fd()
588 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verify_fd()
727 struct sshkey *key = NULL; in parse_principals_key_and_options()
879 const struct sshkey *sign_key, const char *principal, in check_allowed_keys_line()
882 struct sshkey *found_key = NULL; in check_allowed_keys_line()
1133 sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey) in sshsig_get_pubkey()
[all …]
H A Dkrl.c87 struct sshkey *ca_key;
328 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi) in ssh_krl_revoke_cert_by_serial_range()
369 struct sshkey *kcopy; in plain_key_blob()
452 ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key()
732 struct sshkey **sign_keys, u_int nsign_keys) in ssh_krl_to_blob()
853 struct sshkey *ca_key = NULL; in parse_revoked_certs()
982 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys) in ssh_krl_from_blob()
988 struct sshkey *key = NULL, **ca_used = NULL, **tmp_ca_used; in ssh_krl_from_blob()
1251 is_key_revoked(struct ssh_krl *krl, const struct sshkey *key) in is_key_revoked()
1314 ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_check_key()
[all …]
H A Dssh-pkcs11-helper.c52 struct sshkey *key;
66 add_key(struct sshkey *k, char *name, char *label) in add_key()
95 static struct sshkey *
96 lookup_key(struct sshkey *k) in lookup_key()
122 struct sshkey **keys = NULL; in process_add()
190 struct sshkey *key, *found; in process_sign()
H A Dssh-keygen.c315 static struct sshkey *
319 struct sshkey *prv; in load_identity()
426 struct sshkey *k; in do_convert_to()
474 static struct sshkey *
811 struct sshkey *prv; in do_print_public()
882 static struct sshkey *
885 struct sshkey *ret; in try_read_key()
1698 static struct sshkey *
2466 struct sshkey *k; in do_check_krl()
2489 static struct sshkey *
[all …]
H A Dsshd.c397 struct sshkey *tmp; in demote_sensitive_data()
610 struct sshkey *key;
666 static struct sshkey *
670 struct sshkey *key;
707 struct sshkey *
713 struct sshkey *
719 struct sshkey *
727 struct sshkey *
766 struct sshkey *key;
1489 struct sshkey *key)
[all …]
H A Ddns.h56 struct sshkey *, int *);
57 int export_dns_rr(const char *, struct sshkey *, FILE *, int);
H A Dauth-options.h23 struct sshkey;
98 struct sshauthopt *sshauthopt_from_cert(struct sshkey *k);
H A Dssh_api.h64 int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
73 int (*cb)(struct sshkey *, struct ssh *));
H A Dsshconnect.c73 struct sshkey *previous_host_key = NULL;
84 static int show_other_keys(struct hostkeys *, struct sshkey *);
85 static void warn_changed_key(struct sshkey *);
682 const struct sshkey *key;
807 const struct sshkey *key, in other_hostkeys_message()
843 const struct sshkey *host_key, const char *hostfile_hostname) in load_hostkeys_command()
928 struct sshkey *host_key, int readonly, int clobber_port, in check_host_key()
934 struct sshkey *raw_key = NULL; in check_host_key()
1426 struct sshkey *plain = NULL; in verify_host_key()
1573 show_other_keys(struct hostkeys *hostkeys, struct sshkey *key) in show_other_keys()
[all …]

123