1.\" Generated from openpam_restore_cred.c by gendoc.pl
2.Dd June 27, 2023
3.Dt OPENPAM_RESTORE_CRED 3
4.Os
5.Sh NAME
6.Nm openpam_restore_cred
7.Nd restore credentials
8.Sh SYNOPSIS
9.In sys/types.h
10.In security/pam_appl.h
11.In security/openpam.h
12.Ft "int"
13.Fn openpam_restore_cred "pam_handle_t *pamh"
14.Sh DESCRIPTION
15The
16.Fn openpam_restore_cred
17function restores the credentials saved by
18.Xr openpam_borrow_cred 3 .
19.Pp
20.Sh RETURN VALUES
21The
22.Fn openpam_restore_cred
23function returns one of the following values:
24.Bl -tag -width 18n
25.It Bq Er PAM_SUCCESS
26Success.
27.It Bq Er PAM_NO_MODULE_DATA
28Module data not found.
29.It Bq Er PAM_SYSTEM_ERR
30System error.
31.El
32.Sh SEE ALSO
33.Xr setegid 2 ,
34.Xr seteuid 2 ,
35.Xr setgroups 2 ,
36.Xr openpam_borrow_cred 3 ,
37.Xr pam 3 ,
38.Xr pam_strerror 3
39.Sh STANDARDS
40The
41.Fn openpam_restore_cred
42function is an OpenPAM extension.
43.Sh AUTHORS
44The
45.Fn openpam_restore_cred
46function and this manual page were
47developed for the
48.Fx
49Project by ThinkSec AS and Network Associates Laboratories, the
50Security Research Division of Network Associates, Inc.\& under
51DARPA/SPAWAR contract N66001-01-C-8035
52.Pq Dq CBOSS ,
53as part of the DARPA CHATS research program.
54.Pp
55The OpenPAM library is maintained by
56.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
57