summaryrefslogtreecommitdiff
path: root/uidswap.h
diff options
context:
space:
mode:
authordjm <djm>2006-07-10 10:53:08 +0000
committerdjm <djm>2006-07-10 10:53:08 +0000
commit5c5aa7933aefcabd00cfbadcc8c17b03d4dadd5b (patch)
tree1f74cb6aff279bafcf528c4d79224a23e55da019 /uidswap.h
parent04333cb11eb115e7274ce99fd5677c412d6901fc (diff)
downloadopenssh-5c5aa7933aefcabd00cfbadcc8c17b03d4dadd5b.tar.gz
- stevesk@cvs.openbsd.org 2006/07/06 16:03:53
[auth-options.c auth-options.h auth-passwd.c auth-rh-rsa.c] [auth-rhosts.c auth-rsa.c auth.c auth.h auth2-hostbased.c] [auth2-pubkey.c auth2.c includes.h misc.c misc.h monitor.c] [monitor_wrap.c monitor_wrap.h scp.c serverloop.c session.c] [session.h sftp-common.c ssh-add.c ssh-keygen.c ssh-keysign.c] [ssh.c sshconnect.c sshconnect.h sshd.c sshpty.c sshpty.h uidswap.c] [uidswap.h] move #include <pwd.h> out of includes.h; ok markus@
Diffstat (limited to 'uidswap.h')
-rw-r--r--uidswap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/uidswap.h b/uidswap.h
index f827782d..436c10f7 100644
--- a/uidswap.h
+++ b/uidswap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uidswap.h,v 1.11 2006/06/08 14:45:49 markus Exp $ */
+/* $OpenBSD: uidswap.h,v 1.12 2006/07/06 16:03:53 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -15,6 +15,10 @@
#ifndef UIDSWAP_H
#define UIDSWAP_H
+#include <sys/types.h>
+
+#include <pwd.h>
+
void temporarily_use_uid(struct passwd *);
void restore_uid(void);
void permanently_set_uid(struct passwd *);