From fc0e2647c036addc727aa347af734f1f33a258f1 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 13 Nov 1996 00:21:56 +0000 Subject: Wed Nov 6 19:26:14 1996 Thomas Bushnell, n/BSG * Makefile (SRCS): Add iouser-create.c, iouser-dup.c iouser-reauth.c, and iouser-free.c. (OBJS): Compute automatically. * iohelp.h (iohelp_create_user): New function. * iouser-create.c: New file. Tue Nov 5 21:51:24 1996 Thomas Bushnell, n/BSG * iohelp.h (struct iouser): New type. (iohelp_dup_iouser, iohelp_free_iouser, iohelp_reauth): New functions. * iouser-dup.c, iouser-reauth.c, iouser-free.c: New files. --- libiohelp/iohelp.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'libiohelp/iohelp.h') diff --git a/libiohelp/iohelp.h b/libiohelp/iohelp.h index 2897653d..f4a8615e 100644 --- a/libiohelp/iohelp.h +++ b/libiohelp/iohelp.h @@ -64,4 +64,33 @@ void iohelp_fetch_shared_data (void *); void iohelp_put_shared_data (void *); + +/* User identification */ + +struct iouser +{ + struct idvec *uids, *gids; + void *hook; /* Never used by iohelp library */ +}; + +/* Return a copy of IOUSER. */ +struct iouser *iohelp_dup_iouser (struct iouser *iouser); + +/* Free a reference to IOUSER. */ +void iohelp_free_iouser (struct iouser *iouser); + +/* Create a new IOUSER for the specified idvecs */ +struc iouser *iohelp_create_iouser (struct idvec *uids, struct idvec *gids); + +/* Conduct a reauthentication transaction, returning a new iouser. + AUTHSERVER is the I/O servers auth port. The rendezvous port + provided by the user is REND_PORT. If the transaction cannot be + completed, return zero, unless PERMIT_FAILURE is non-zero. If + PERMIT_FAILURE is nonzero, then should the transaction fail, return + an iouser that has no ids. The new port to be sent to the user is + newright. */ +struct iouser *iohelp_reauth (auth_t authserver, mach_port_t rend_port, + mach_port_t newright, int permit_failure); + + #endif -- cgit v1.2.3