xref: /freebsd/crypto/openssh/uidswap.h (revision ae1f160d56b2d59d406f1af34cbdcc88a9e1b914)
1ae1f160dSDag-Erling Smørgrav /*	$OpenBSD: uidswap.h,v 1.9 2001/06/26 17:27:25 markus Exp $	*/
21e8db6e2SBrian Feldman 
3511b41d2SMark Murray /*
4511b41d2SMark Murray  * Author: Tatu Ylonen <ylo@cs.hut.fi>
5511b41d2SMark Murray  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6511b41d2SMark Murray  *                    All rights reserved
7511b41d2SMark Murray  *
8b66f2d16SKris Kennaway  * As far as I am concerned, the code I have written for this software
9b66f2d16SKris Kennaway  * can be used freely for any purpose.  Any derived versions of this
10b66f2d16SKris Kennaway  * software must be clearly marked as such, and if the derived work is
11b66f2d16SKris Kennaway  * incompatible with the protocol description in the RFC file, it must be
12b66f2d16SKris Kennaway  * called by a name other than "ssh" or "Secure Shell".
13511b41d2SMark Murray  */
14511b41d2SMark Murray 
15511b41d2SMark Murray #ifndef UIDSWAP_H
16511b41d2SMark Murray #define UIDSWAP_H
17511b41d2SMark Murray 
18ae1f160dSDag-Erling Smørgrav void	 temporarily_use_uid(struct passwd *);
191e8db6e2SBrian Feldman void	 restore_uid(void);
20ae1f160dSDag-Erling Smørgrav void	 permanently_set_uid(struct passwd *);
21511b41d2SMark Murray 
22511b41d2SMark Murray #endif				/* UIDSWAP_H */
23