xref: /freebsd/crypto/openssh/uidswap.h (revision 3af64f03119a159ac15eb75b92d346705b490385)
1*190cef3dSDag-Erling Smørgrav /* $OpenBSD: uidswap.h,v 1.14 2018/07/18 11:34:05 dtucker 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 
15ae1f160dSDag-Erling Smørgrav void	 temporarily_use_uid(struct passwd *);
161e8db6e2SBrian Feldman void	 restore_uid(void);
17ae1f160dSDag-Erling Smørgrav void	 permanently_set_uid(struct passwd *);
18