xref: /freebsd/contrib/openpam/doc/man/pam_getenv.3 (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1.\" Generated from pam_getenv.c by gendoc.pl
2.\" $OpenPAM: pam_getenv.c 944 2019-02-22 09:49:12Z des $
3.Dd February 24, 2019
4.Dt PAM_GETENV 3
5.Os
6.Sh NAME
7.Nm pam_getenv
8.Nd retrieve the value of a PAM environment variable
9.Sh SYNOPSIS
10.In sys/types.h
11.In security/pam_appl.h
12.Ft "const char *"
13.Fn pam_getenv "pam_handle_t *pamh" "const char *name"
14.Sh DESCRIPTION
15The
16.Fn pam_getenv
17function returns the value of an environment variable.
18Its semantics are similar to those of
19.Xr getenv 3 ,
20but it accesses the PAM
21context's environment list instead of the application's.
22.Pp
23.Sh RETURN VALUES
24The
25.Fn pam_getenv
26function returns
27.Dv NULL
28on failure.
29.Sh SEE ALSO
30.Xr getenv 3 ,
31.Xr pam 3 ,
32.Xr pam_getenvlist 3 ,
33.Xr pam_putenv 3 ,
34.Xr pam_setenv 3
35.Sh STANDARDS
36.Rs
37.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
38.%D "June 1997"
39.Re
40.Sh AUTHORS
41The
42.Fn pam_getenv
43function and this manual page were
44developed for the
45.Fx
46Project by ThinkSec AS and Network Associates Laboratories, the
47Security Research Division of Network Associates, Inc.\& under
48DARPA/SPAWAR contract N66001-01-C-8035
49.Pq Dq CBOSS ,
50as part of the DARPA CHATS research program.
51.Pp
52The OpenPAM library is maintained by
53.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
54