Lines Matching refs:to
18 * may be used to endorse or promote products derived from this software
187 _gss_copy_cred(ntlm_cred from, ntlm_cred *to)
189 *to = calloc(1, sizeof(**to));
190 if (*to == NULL)
192 (*to)->username = strdup(from->username);
193 if ((*to)->username == NULL) {
194 free(*to);
197 (*to)->domain = strdup(from->domain);
198 if ((*to)->domain == NULL) {
199 free((*to)->username);
200 free(*to);
203 (*to)->key.data = malloc(from->key.length);
204 if ((*to)->key.data == NULL) {
205 free((*to)->domain);
206 free((*to)->username);
207 free(*to);
210 memcpy((*to)->key.data, from->key.data, from->key.length);
211 (*to)->key.length = from->key.length;