Lines Matching defs:src
76 errno_t copy_pam_data(TALLOC_CTX *mem_ctx, struct pam_data *src,
88 pd->cmd = src->cmd;
89 pd->priv = src->priv;
91 pd->domain = talloc_strdup(pd, src->domain);
92 if (pd->domain == NULL && src->domain != NULL) {
96 pd->user = talloc_strdup(pd, src->user);
97 if (pd->user == NULL && src->user != NULL) {
101 pd->service = talloc_strdup(pd, src->service);
102 if (pd->service == NULL && src->service != NULL) {
106 pd->tty = talloc_strdup(pd, src->tty);
107 if (pd->tty == NULL && src->tty != NULL) {
111 pd->ruser = talloc_strdup(pd, src->ruser);
112 if (pd->ruser == NULL && src->ruser != NULL) {
116 pd->rhost = talloc_strdup(pd, src->rhost);
117 if (pd->rhost == NULL && src->rhost != NULL) {
122 pd->cli_pid = src->cli_pid;
125 * than src->authtok and src->newauthtok are NULL, therefore
128 if (src->authtok) {
129 ret = sss_authtok_copy(src->authtok, pd->authtok);
141 if (src->newauthtok) {
142 ret = sss_authtok_copy(src->newauthtok, pd->newauthtok);