17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * Author: Tatu Ylonen <ylo@cs.hut.fi> 37c478bd9Sstevel@tonic-gate * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 47c478bd9Sstevel@tonic-gate * All rights reserved 57c478bd9Sstevel@tonic-gate * 67c478bd9Sstevel@tonic-gate * As far as I am concerned, the code I have written for this software 77c478bd9Sstevel@tonic-gate * can be used freely for any purpose. Any derived versions of this 87c478bd9Sstevel@tonic-gate * software must be clearly marked as such, and if the derived work is 97c478bd9Sstevel@tonic-gate * incompatible with the protocol description in the RFC file, it must be 107c478bd9Sstevel@tonic-gate * called by a name other than "ssh" or "Secure Shell". 117c478bd9Sstevel@tonic-gate */ 127c478bd9Sstevel@tonic-gate 13*6f8d59d8SJan Pechanec /* $OpenBSD: uidswap.h,v 1.9 2001/06/26 17:27:25 markus Exp $ */ 14*6f8d59d8SJan Pechanec 15*6f8d59d8SJan Pechanec #ifndef _UIDSWAP_H 16*6f8d59d8SJan Pechanec #define _UIDSWAP_H 17*6f8d59d8SJan Pechanec 18*6f8d59d8SJan Pechanec #ifdef __cplusplus 19*6f8d59d8SJan Pechanec extern "C" { 20*6f8d59d8SJan Pechanec #endif 21*6f8d59d8SJan Pechanec 227c478bd9Sstevel@tonic-gate void temporarily_use_uid(struct passwd *); 237c478bd9Sstevel@tonic-gate void restore_uid(void); 24*6f8d59d8SJan Pechanec void permanently_set_uid(struct passwd *, char *); 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifdef __cplusplus 277c478bd9Sstevel@tonic-gate } 287c478bd9Sstevel@tonic-gate #endif 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #endif /* _UIDSWAP_H */ 31