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