blob: 0726980d087d6dd5ee0d9763958ac762ce324c7e [file] [log] [blame]
Ben Lindstrom4cc240d2001-07-04 04:46:56 +00001/* $OpenBSD: uidswap.h,v 1.9 2001/06/26 17:27:25 markus Exp $ */
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Millerd4a8b7e1999-10-27 13:42:43 +10003/*
Damien Miller95def091999-11-25 00:26:21 +11004 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller95def091999-11-25 00:26:21 +11005 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
Damien Miller4af51302000-04-16 11:18:38 +10007 *
Damien Millere4340be2000-09-16 13:29:08 +11008 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
Damien Miller95def091999-11-25 00:26:21 +110013 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100014
15#ifndef UIDSWAP_H
16#define UIDSWAP_H
17
Ben Lindstrom4cc240d2001-07-04 04:46:56 +000018void temporarily_use_uid(struct passwd *);
19void restore_uid(void);
20void permanently_set_uid(struct passwd *);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100021
Damien Miller95def091999-11-25 00:26:21 +110022#endif /* UIDSWAP_H */