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