1238106Sdes/* $OpenBSD: uidswap.h,v 1.13 2006/08/03 03:34:42 deraadt Exp $ */
2249141Sdes
3238106Sdes/*
4238106Sdes * Author: Tatu Ylonen <ylo@cs.hut.fi>
5238106Sdes * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6238106Sdes *                    All rights reserved
7238106Sdes *
8238106Sdes * As far as I am concerned, the code I have written for this software
9238106Sdes * can be used freely for any purpose.  Any derived versions of this
10238106Sdes * software must be clearly marked as such, and if the derived work is
11238106Sdes * incompatible with the protocol description in the RFC file, it must be
12238106Sdes * called by a name other than "ssh" or "Secure Shell".
13238106Sdes */
14238106Sdes
15238106Sdesvoid	 temporarily_use_uid(struct passwd *);
16238106Sdesvoid	 restore_uid(void);
17238106Sdesvoid	 permanently_set_uid(struct passwd *);
18238106Sdesvoid	 permanently_drop_suid(uid_t);
19238106Sdes