Lines Matching defs:authctxt
182 extern void aps_monitor_loop(Authctxt *authctxt, pid_t child_pid);
189 static pid_t altprivsep_start_monitor(Authctxt **authctxt);
190 static void altprivsep_do_monitor(Authctxt *authctxt, pid_t child_pid);
229 altprivsep_start_monitor(Authctxt **authctxt)
274 xxx_authctxt = *authctxt = aps_read_auth_context();
401 altprivsep_do_monitor(Authctxt *authctxt, pid_t child_pid)
403 aps_monitor_loop(authctxt, child_pid);
574 altprivsep_send_auth_context(Authctxt *authctxt)
579 altprivsep_packet_put_int(authctxt->pw->pw_uid);
580 altprivsep_packet_put_int(authctxt->pw->pw_gid);
581 altprivsep_packet_put_cstring(authctxt->pw->pw_name);
769 Authctxt *authctxt;
782 authctxt = xcalloc(1, sizeof(Authctxt));
783 authctxt->pw = xcalloc(1, sizeof(struct passwd));
786 authctxt->pw->pw_uid = packet_get_int();
787 authctxt->pw->pw_gid = packet_get_int();
788 authctxt->pw->pw_name = packet_get_string(NULL);
789 authctxt->user = xstrdup(authctxt->pw->pw_name);
790 debug3("uid/gid/username %d/%d/%s", authctxt->pw->pw_uid,
791 authctxt->pw->pw_gid, authctxt->user);
809 return (authctxt);
1059 Authctxt *authctxt;
1073 if ((aps_child = altprivsep_start_monitor(&authctxt)) == -1)
1116 record_login(getpid(), NULL, "sshd", authctxt->user);
1122 if (initgroups(authctxt->pw->pw_name,
1123 authctxt->pw->pw_gid) < 0) {
1149 altprivsep_do_monitor(authctxt, aps_child);
1157 record_logout(getpid(), NULL, "sshd", authctxt->user);