1.\" $NetBSD: openpam_restore_cred.3,v 1.4 2013/12/27 20:10:20 christos Exp $ 2.\" 3.\" Generated from openpam_restore_cred.c by gendoc.pl 4.\" Id: openpam_restore_cred.c 648 2013-03-05 17:54:27Z des 5.Dd September 7, 2013 6.Dt OPENPAM_RESTORE_CRED 3 7.Os 8.Sh NAME 9.Nm openpam_restore_cred 10.Nd restore credentials 11.Sh LIBRARY 12.Lb libpam 13.Sh SYNOPSIS 14.In sys/types.h 15.In security/pam_appl.h 16.In security/openpam.h 17.Ft "int" 18.Fn openpam_restore_cred "pam_handle_t *pamh" 19.Sh DESCRIPTION 20The 21.Fn openpam_restore_cred 22function restores the credentials saved by 23.Xr openpam_borrow_cred 3 . 24.Sh RETURN VALUES 25The 26.Fn openpam_restore_cred 27function returns one of the following values: 28.Bl -tag -width 18n 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 des@des.no . 59