1255365Sdes/*-
2255365Sdes * Copyright (c) 2001-2003 Networks Associates Technology, Inc.
3255365Sdes * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav
4255365Sdes * All rights reserved.
5255365Sdes *
6255365Sdes * This software was developed for the FreeBSD Project by ThinkSec AS and
7255365Sdes * Network Associates Laboratories, the Security Research Division of
8255365Sdes * Network Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9255365Sdes * ("CBOSS"), as part of the DARPA CHATS research program.
10255365Sdes *
11255365Sdes * Redistribution and use in source and binary forms, with or without
12255365Sdes * modification, are permitted provided that the following conditions
13255365Sdes * are met:
14255365Sdes * 1. Redistributions of source code must retain the above copyright
15255365Sdes *    notice, this list of conditions and the following disclaimer.
16255365Sdes * 2. Redistributions in binary form must reproduce the above copyright
17255365Sdes *    notice, this list of conditions and the following disclaimer in the
18255365Sdes *    documentation and/or other materials provided with the distribution.
19255365Sdes * 3. The name of the author may not be used to endorse or promote
20255365Sdes *    products derived from this software without specific prior written
21255365Sdes *    permission.
22255365Sdes *
23255365Sdes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24255365Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25255365Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26255365Sdes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27255365Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28255365Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29255365Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30255365Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31255365Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32255365Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33255365Sdes * SUCH DAMAGE.
34255365Sdes *
35348980Sdes * $OpenPAM: openpam_cred.h 938 2017-04-30 21:34:42Z des $
36255365Sdes */
37255365Sdes
38255365Sdes#ifndef OPENPAM_CRED_H_INCLUDED
39255365Sdes#define OPENPAM_CRED_H_INCLUDED
40255365Sdes
41255365Sdes/*
42255365Sdes * Saved credentials
43255365Sdes */
44255365Sdes#define PAM_SAVED_CRED "pam_saved_cred"
45255365Sdesstruct pam_saved_cred {
46255365Sdes	uid_t	 euid;
47255365Sdes	gid_t	 egid;
48255365Sdes	gid_t	 groups[NGROUPS_MAX];
49255365Sdes	int	 ngroups;
50255365Sdes};
51255365Sdes
52255365Sdes#endif
53