diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-11-13 00:21:56 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-11-13 00:21:56 +0000 |
commit | fc0e2647c036addc727aa347af734f1f33a258f1 (patch) | |
tree | c3ab40d609abd748f2600cabe7f159b2fce3cb64 /libiohelp/iohelp.h | |
parent | e881d19bded1191cf1157b212e1007ba80892e26 (diff) |
Wed Nov 6 19:26:14 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* 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 <thomas@gnu.ai.mit.edu>
* 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.
Diffstat (limited to 'libiohelp/iohelp.h')
-rw-r--r-- | libiohelp/iohelp.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 |