pam_putenv.3 revision 1.5 1 <<<<<<< pam_putenv.3
2 .\" $NetBSD: pam_putenv.3,v 1.5 2014/10/24 18:17:56 christos Exp $
3 .\"
4 =======
5 >>>>>>> 1.1.1.4
6 .\" Generated from pam_putenv.c by gendoc.pl
7 .\" Id: pam_putenv.c 648 2013-03-05 17:54:27Z des
8 .Dd September 12, 2014
9 .Dt PAM_PUTENV 3
10 .Os
11 .Sh NAME
12 .Nm pam_putenv
13 .Nd set the value of an environment variable
14 .Sh LIBRARY
15 .Lb libpam
16 .Sh SYNOPSIS
17 .In sys/types.h
18 .In security/pam_appl.h
19 .Ft "int"
20 .Fn pam_putenv "pam_handle_t *pamh" "const char *namevalue"
21 .Sh DESCRIPTION
22 The
23 .Fn pam_putenv
24 function sets an environment variable.
25 Its semantics are similar to those of
26 .Xr putenv 3 ,
27 but it modifies the PAM
28 context's environment list instead of the application's.
29 .Sh RETURN VALUES
30 The
31 .Fn pam_putenv
32 function returns one of the following values:
33 .Bl -tag -width 18n
34 .It Bq Er PAM_BUF_ERR
35 Memory buffer error.
36 .It Bq Er PAM_SYSTEM_ERR
37 System error.
38 .El
39 .Sh SEE ALSO
40 .Xr pam 3 ,
41 .Xr pam_getenv 3 ,
42 .Xr pam_getenvlist 3 ,
43 .Xr pam_setenv 3 ,
44 .Xr pam_strerror 3 ,
45 .Xr putenv 3
46 .Sh STANDARDS
47 .Rs
48 .%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
49 .%D "June 1997"
50 .Re
51 .Sh AUTHORS
52 The
53 .Fn pam_putenv
54 function and this manual page were
55 developed for the
56 .Fx
57 Project by ThinkSec AS and Network Associates Laboratories, the
58 Security Research Division of Network Associates, Inc.\& under
59 DARPA/SPAWAR contract N66001-01-C-8035
60 .Pq Dq CBOSS ,
61 as part of the DARPA CHATS research program.
62 .Pp
63 The OpenPAM library is maintained by
64 .An Dag-Erling Sm\(/orgrav Aq des (a] des.no .
65