Searched refs:srks (Results 1 – 6 of 6) sorted by relevance
/freebsd/crypto/openssh/ |
H A D | ssh-sk-client.c | 383 sshsk_free_resident_keys(struct sshsk_resident_key **srks, size_t nsrks) in sshsk_free_resident_keys() argument 387 if (srks == NULL || nsrks == 0) in sshsk_free_resident_keys() 391 sshsk_free_resident_key(srks[i]); in sshsk_free_resident_keys() 392 free(srks); in sshsk_free_resident_keys() 403 struct sshsk_resident_key *srk = NULL, **srks = NULL, **tmp; in sshsk_load_resident() local 451 if ((tmp = recallocarray(srks, nsrks, nsrks + 1, in sshsk_load_resident() 452 sizeof(*srks))) == NULL) { in sshsk_load_resident() 460 srks = tmp; in sshsk_load_resident() 461 srks[nsrks++] = srk; in sshsk_load_resident() 467 *srksp = srks; in sshsk_load_resident() [all …]
|
H A D | ssh-sk-helper.c | 218 struct sshsk_resident_key **srks = NULL; in process_load_resident() local 237 &srks, &nsrks)) != 0) { in process_load_resident() 251 sshkey_type(srks[i]->key), srks[i]->key->sk_application, in process_load_resident() 252 srks[i]->user_id_len); in process_load_resident() 254 if ((r = sshkey_private_serialize(srks[i]->key, kbuf)) != 0) in process_load_resident() 258 (r = sshbuf_put_string(resp, srks[i]->user_id, in process_load_resident() 259 srks[i]->user_id_len)) != 0) in process_load_resident() 264 sshsk_free_resident_keys(srks, nsrks); in process_load_resident()
|
H A D | ssh-sk.c | 788 sshsk_free_resident_keys(struct sshsk_resident_key **srks, size_t nsrks) in sshsk_free_resident_keys() argument 792 if (srks == NULL || nsrks == 0) in sshsk_free_resident_keys() 796 sshsk_free_resident_key(srks[i]); in sshsk_free_resident_keys() 797 free(srks); in sshsk_free_resident_keys() 810 struct sshsk_resident_key *srk = NULL, **srks = NULL, **tmp; in sshsk_load_resident() local 867 if ((tmp = recallocarray(srks, nsrks, nsrks + 1, in sshsk_load_resident() 873 srks = tmp; in sshsk_load_resident() 874 srks[nsrks++] = srk; in sshsk_load_resident() 879 *srksp = srks; in sshsk_load_resident() 881 srks = NULL; in sshsk_load_resident() [all …]
|
H A D | ssh-sk.h | 76 void sshsk_free_resident_keys(struct sshsk_resident_key **srks, size_t nsrks);
|
H A D | ssh-add.c | 608 struct sshsk_resident_key **srks; in load_resident_keys() local 616 &srks, &nsrks)) != 0) { in load_resident_keys() 621 key = srks[i]->key; in load_resident_keys() 650 sshsk_free_resident_keys(srks, nsrks); in load_resident_keys()
|
H A D | ssh-keygen.c | 3197 struct sshsk_resident_key **srks; in do_download_sk() local 3213 &srks, &nsrks)) != 0) { in do_download_sk() 3225 key = srks[i]->key; in do_download_sk() 3237 srks[i]->user_id, srks[i]->user_id_len); in do_download_sk() 3281 sshsk_free_resident_keys(srks, nsrks); in do_download_sk()
|