Lines Matching refs:target

34 	struct imap_urlauth_target *target;
79 /* userid => target struct */
165 struct imap_urlauth_target *target = conn->targets_head;
167 while (target != NULL) {
168 if (strcmp(target->userid, target_user) == 0)
169 return target;
170 target = target->next;
173 target = i_new(struct imap_urlauth_target, 1);
174 target->userid = i_strdup(target_user);
175 DLLIST2_APPEND(&conn->targets_head, &conn->targets_tail, target);
176 return target;
181 struct imap_urlauth_target *target)
183 DLLIST2_REMOVE(&conn->targets_head, &conn->targets_tail, target);
184 i_free(target->userid);
185 i_free(target);
191 struct imap_urlauth_target *target = conn->targets_head;
194 if (target == NULL || conn->state != IMAP_URLAUTH_STATE_AUTHENTICATED)
198 i_debug("imap-urlauth: Selecting target user `%s'", target->userid);
201 cmd = t_strdup_printf("USER\t%s\n", str_tabescape(target->userid));
285 struct imap_urlauth_target *target;
287 target = imap_urlauth_connection_get_target(conn, target_user);
292 urlreq->target = target;
296 DLLIST2_APPEND(&target->requests_head, &target->requests_tail, urlreq);
311 struct imap_urlauth_target *target = urlreq->target;
313 DLLIST2_REMOVE(&target->requests_head, &target->requests_tail, urlreq);
387 struct imap_urlauth_target *target)
391 urlreq = target->requests_head;
398 imap_urlauth_target_free(conn, target);
403 struct imap_urlauth_target *target, const char *error)
407 urlreq = target->requests_head;
414 imap_urlauth_target_free(conn, target);
419 struct imap_urlauth_target *target,
425 urlreq = target->requests_head;
433 if (target->requests_head == NULL)
434 imap_urlauth_target_free(conn, target);
441 struct imap_urlauth_target *target, *next;
448 target = conn->targets_head;
449 while (target != NULL) {
450 next = target->next;
451 imap_urlauth_target_abort(conn, target);
452 target = next;
459 struct imap_urlauth_target *target, *next;
462 target = conn->targets_head;
463 while (target != NULL) {
464 next = target->next;
465 imap_urlauth_target_abort_by_context(conn, target, context);
466 target = next;
782 i_error("imap-urlauth: Failed to unselect target user: "
792 i_debug("imap-urlauth: Successfully unselected target user");
807 i_debug("imap-urlauth: Failed to select target user %s",
817 i_error("imap-urlauth: Failed to select target user %s: "
825 i_debug("imap-urlauth: Successfully selected target user %s",