Lines Matching defs:psd
339 struct pam_module_data *psd, *p;
354 psd = pamh->ssd;
355 while (psd) {
356 if (psd->cleanup) {
357 psd->cleanup(pamh, psd->data, pam_status);
359 p = psd;
360 psd = p->next;
801 struct pam_module_data *psd;
814 for (psd = pamh->ssd; psd; psd = psd->next) {
815 if (strcmp(psd->module_data_name, module_data_name) == 0) {
817 if (psd->cleanup) {
818 psd->cleanup(pamh, psd->data, PAM_SUCCESS);
820 psd->data = (void *)data;
821 psd->cleanup = cleanup;
826 psd = malloc(sizeof (struct pam_module_data));
827 if (psd == NULL)
830 psd->module_data_name = strdup(module_data_name);
831 if (psd->module_data_name == NULL) {
832 free(psd);
836 psd->data = (void *)data;
837 psd->cleanup = cleanup;
838 psd->next = pamh->ssd;
839 pamh->ssd = psd;
851 struct pam_module_data *psd;
862 for (psd = pamh->ssd; psd; psd = psd->next) {
863 if (strcmp(psd->module_data_name, module_data_name) == 0) {
864 *data = psd->data;