Lines Matching refs:psk
104 struct pam_ssh_key *psk; in pam_ssh_load_key() local
138 if ((psk = malloc(sizeof(*psk))) == NULL) { in pam_ssh_load_key()
143 psk->key = key; in pam_ssh_load_key()
144 psk->comment = comment; in pam_ssh_load_key()
145 return (psk); in pam_ssh_load_key()
155 struct pam_ssh_key *psk; in pam_ssh_free_key() local
157 psk = data; in pam_ssh_free_key()
158 sshkey_free(psk->key); in pam_ssh_free_key()
159 free(psk->comment); in pam_ssh_free_key()
160 free(psk); in pam_ssh_free_key()
170 struct pam_ssh_key *psk; in pam_sm_authenticate() local
206 psk = pam_ssh_load_key(pwd->pw_dir, *kfn, passphrase, nullok); in pam_sm_authenticate()
207 if (psk != NULL) { in pam_sm_authenticate()
208 pam_set_data(pamh, *kfn, psk, pam_ssh_free_key); in pam_sm_authenticate()
357 const struct pam_ssh_key *psk; in pam_ssh_add_keys_to_agent() local
386 psk = vp; in pam_ssh_add_keys_to_agent()
387 if (pam_err == PAM_SUCCESS && psk != NULL) { in pam_ssh_add_keys_to_agent()
388 if (ssh_add_identity(agent_fd, psk->key, psk->comment)) in pam_ssh_add_keys_to_agent()
390 "added %s to ssh agent", psk->comment); in pam_ssh_add_keys_to_agent()
393 "to add %s to ssh agent", psk->comment); in pam_ssh_add_keys_to_agent()