xref: /titanic_50/usr/src/cmd/ssh/include/uidswap.h (revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0)
1 /*	$OpenBSD: uidswap.h,v 1.9 2001/06/26 17:27:25 markus Exp $	*/
2 
3 #ifndef	_UIDSWAP_H
4 #define	_UIDSWAP_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*
14  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16  *                    All rights reserved
17  *
18  * As far as I am concerned, the code I have written for this software
19  * can be used freely for any purpose.  Any derived versions of this
20  * software must be clearly marked as such, and if the derived work is
21  * incompatible with the protocol description in the RFC file, it must be
22  * called by a name other than "ssh" or "Secure Shell".
23  */
24 
25 void	 temporarily_use_uid(struct passwd *);
26 void	 restore_uid(void);
27 void	 permanently_set_uid(struct passwd *);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* _UIDSWAP_H */
34