Home
last modified time | relevance | path

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

12

/external/openssh/
Dsshkey.h97 struct sshkey *signature_key;
101 struct sshkey { struct
116 struct sshkey *sshkey_new(int); argument
117 int sshkey_add_private(struct sshkey *);
118 struct sshkey *sshkey_new_private(int);
119 void sshkey_free(struct sshkey *);
120 int sshkey_demote(const struct sshkey *, struct sshkey **);
121 int sshkey_equal_public(const struct sshkey *,
122 const struct sshkey *);
123 int sshkey_equal(const struct sshkey *, const struct sshkey *);
[all …]
Dauthfile.h31 struct sshkey;
36 int sshkey_save_private(struct sshkey *, const char *,
39 int sshkey_load_cert(const char *, struct sshkey **);
40 int sshkey_load_public(const char *, struct sshkey **, char **);
41 int sshkey_load_private(const char *, const char *, struct sshkey **, char **);
43 struct sshkey **, int *);
45 struct sshkey **, char **, int *);
47 struct sshkey **keyp, char **commentp);
49 int sshkey_in_file(struct sshkey *, const char *, int, int);
50 int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file);
Dkrl.h39 struct sshkey;
46 void ssh_krl_set_sign_key(struct ssh_krl *krl, const struct sshkey *sign_key);
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);
55 int ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const struct sshkey *key);
56 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
58 const struct sshkey **sign_keys, u_int nsign_keys);
60 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys);
[all …]
Dauthfile.c76 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private()
145 sshkey_load_public_rsa1(int fd, struct sshkey **keyp, char **commentp) in sshkey_load_public_rsa1()
199 struct sshkey **keyp, char **commentp, int *perm_ok) in sshkey_load_private_type()
229 struct sshkey **keyp, char **commentp) in sshkey_load_private_type_fd()
254 struct sshkey **keyp, char **commentp) in sshkey_load_private()
287 sshkey_try_load_public(struct sshkey *k, const char *filename, char **commentp) in sshkey_try_load_public()
335 sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp) in sshkey_load_public()
337 struct sshkey *pub = NULL; in sshkey_load_public()
405 sshkey_load_cert(const char *filename, struct sshkey **keyp) in sshkey_load_cert()
407 struct sshkey *pub = NULL; in sshkey_load_cert()
[all …]
Dhostfile.h29 struct sshkey *key;
38 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *,
43 int hostfile_read_key(char **, u_int *, struct sshkey *);
45 const struct sshkey *, int);
48 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
93 struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
Dauthfd.h22 struct sshkey **keys;
33 int ssh_add_identity_constrained(int sock, struct sshkey *key,
35 int ssh_remove_identity(int sock, struct sshkey *key);
40 int ssh_decrypt_challenge(int sock, struct sshkey* key, BIGNUM *challenge,
42 int ssh_agent_sign(int sock, struct sshkey *key,
Dssh_api.c40 int _ssh_verify_host_key(struct sshkey *, struct ssh *);
41 struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
42 struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
43 int _ssh_host_key_sign(struct sshkey *, struct sshkey *, u_char **,
51 int mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
60 mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp, in mm_sshkey_sign()
172 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey()
174 struct sshkey *pubkey = NULL; in ssh_add_hostkey()
207 int (*cb)(struct sshkey *, struct ssh *)) in ssh_set_verify_host_key_callback() argument
434 struct sshkey *
[all …]
Dkex.h144 int (*verify_host_key)(struct sshkey *, struct ssh *);
145 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
146 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
147 int (*host_key_index)(struct sshkey *, int, struct ssh *);
148 int (*sign)(struct sshkey *, struct sshkey *,
Dsshkey.c77 struct sshkey **keyp, int allow_cert);
123 sshkey_type(const struct sshkey *k) in sshkey_type()
159 sshkey_ssh_name(const struct sshkey *k) in sshkey_ssh_name()
165 sshkey_ssh_name_plain(const struct sshkey *k) in sshkey_ssh_name_plain()
269 sshkey_size(const struct sshkey *k) in sshkey_size()
294 sshkey_cert_is_legacy(const struct sshkey *k) in sshkey_cert_is_legacy()
320 sshkey_is_cert(const struct sshkey *k) in sshkey_is_cert()
477 struct sshkey *
480 struct sshkey *k; in sshkey_new()
555 sshkey_add_private(struct sshkey *k) in sshkey_add_private()
[all …]
Dauth.h46 struct sshkey;
82 struct sshkey **prev_userkeys;
132 void auth2_record_userkey(Authctxt *, struct sshkey *);
133 int auth2_userkey_already_used(Authctxt *, struct sshkey *);
Dkrl.c86 struct sshkey *ca_key;
208 revoked_certs_for_ca_key(struct ssh_krl *krl, const struct sshkey *ca_key, in revoked_certs_for_ca_key()
316 ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_serial()
324 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi) in ssh_krl_revoke_cert_by_serial_range()
337 ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_key_id()
363 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob()
365 struct sshkey *kcopy; in plain_key_blob()
400 ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key_explicit()
413 ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key_sha1()
427 ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key()
[all …]
Ddns.h54 struct sshkey *, int *);
55 int export_dns_rr(const char *, struct sshkey *, FILE *, int);
Dssh-keygen.c274 static struct sshkey *
278 struct sshkey *prv; in load_identity()
304 do_convert_to_ssh2(struct passwd *pw, struct sshkey *k) in do_convert_to_ssh2()
335 do_convert_to_pkcs8(struct sshkey *k) in do_convert_to_pkcs8()
360 do_convert_to_pem(struct sshkey *k) in do_convert_to_pem()
384 struct sshkey *k; in do_convert_to()
432 static struct sshkey *
436 struct sshkey *key = NULL; in do_convert_private_ssh2_from_blob()
570 do_convert_from_ssh2(struct passwd *pw, struct sshkey **k, int *private) in do_convert_from_ssh2()
623 do_convert_from_pkcs8(struct sshkey **k, int *private) in do_convert_from_pkcs8()
[all …]
Dssh_api.h64 int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
73 int (*cb)(struct sshkey *, struct ssh *));
Dauthfd.c204 deserialise_identity1(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity1()
206 struct sshkey *key; in deserialise_identity1()
241 deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity2()
390 ssh_decrypt_challenge(int sock, struct sshkey* key, BIGNUM *challenge, in ssh_decrypt_challenge()
431 ssh_agent_sign(int sock, struct sshkey *key, in ssh_agent_sign()
506 ssh_encode_identity_ssh2(struct sshbuf *b, struct sshkey *key, in ssh_encode_identity_ssh2()
541 ssh_add_identity_constrained(int sock, struct sshkey *key, const char *comment, in ssh_add_identity_constrained()
603 ssh_remove_identity(int sock, struct sshkey *key) in ssh_remove_identity()
Dssh-pkcs11.c390 CK_ATTRIBUTE [], CK_ATTRIBUTE [3], struct sshkey ***, int *)
395 struct sshkey ***keysp, int *nkeys) in pkcs11_fetch_keys()
427 pkcs11_key_included(struct sshkey ***keysp, int *nkeys, struct sshkey *key) in pkcs11_key_included()
440 struct sshkey ***keysp, int *nkeys) in pkcs11_fetch_keys_filter()
442 struct sshkey *key; in pkcs11_fetch_keys_filter()
531 sizeof(struct sshkey *)); in pkcs11_fetch_keys_filter()
549 pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp) in pkcs11_add_provider()
Dhostfile.c164 hostfile_read_key(char **cpp, u_int *bitsp, struct sshkey *ret) in hostfile_read_key()
308 check_key_not_revoked(struct hostkeys *hostkeys, struct sshkey *k) in check_key_not_revoked()
343 struct sshkey *k, int keytype, const struct hostkey_entry **found) in check_hostkeys_by_key_or_type()
401 check_key_in_hostkeys(struct hostkeys *hostkeys, struct sshkey *key, in check_key_in_hostkeys()
419 const struct sshkey *key, int store_hash) in write_host_entry()
449 const struct sshkey *key, int store_hash) in add_host_to_hostfile()
469 struct sshkey * const *keys;
532 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) in hostfile_replace_entries()
Ddns.c82 u_char **digest, size_t *digest_len, struct sshkey *key) in dns_read_key()
205 struct sshkey *hostkey, int *flags) in verify_host_key_dns()
327 export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic) in export_dns_rr()
Dssh-keysign.c68 valid_request(struct passwd *pw, char *host, struct sshkey **ret, in valid_request()
72 struct sshkey *key = NULL; in valid_request()
172 struct sshkey *keys[NUM_KEYTYPES], *key = NULL; in main()
Dssh-agent.c114 struct sshkey *key;
195 lookup_identity(struct sshkey *key, int version) in lookup_identity()
297 struct sshkey *key; in process_authentication_challenge1()
323 struct sshkey *private = id->key; in process_authentication_challenge1()
376 struct sshkey *key; in process_sign_request2()
430 struct sshkey *key = NULL; in process_remove_identity()
545 agent_decode_rsa1(struct sshbuf *m, struct sshkey **kp) in agent_decode_rsa1()
547 struct sshkey *k = NULL; in agent_decode_rsa1()
592 struct sshkey *k = NULL; in process_add_identity()
711 struct sshkey **keys = NULL, *k; in process_add_smartcard_key()
Dssh-ed25519.c36 ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, in ssh_ed25519_sign()
95 ssh_ed25519_verify(const struct sshkey *key, in ssh_ed25519_verify()
Dssh-pkcs11.h19 int pkcs11_add_provider(char *, char *, struct sshkey ***);
Dssh-ecdsa.c48 ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, in ssh_ecdsa_sign()
113 ssh_ecdsa_verify(const struct sshkey *key, in ssh_ecdsa_verify()
Dauth-options.h38 int auth_cert_options(struct sshkey *, struct passwd *);
Dssh-dss.c50 ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, in ssh_dss_sign()
131 ssh_dss_verify(const struct sshkey *key, in ssh_dss_verify()

12