xref: /netbsd-src/external/bsd/openpam/dist/doc/man/pam_set_item.3 (revision c34236556bea94afcaca1782d7d228301edc3ea0)
1.\"	$NetBSD: pam_set_item.3,v 1.6 2014/10/24 18:25:14 christos Exp $
2.\"
3.\" Generated from pam_set_item.c by gendoc.pl
4.\" Id: pam_set_item.c 648 2013-03-05 17:54:27Z des
5.Dd September 12, 2014
6.Dt PAM_SET_ITEM 3
7.Os
8.Sh NAME
9.Nm pam_set_item
10.Nd set authentication information
11.Sh LIBRARY
12.Lb libpam
13.Sh SYNOPSIS
14.In sys/types.h
15.In security/pam_appl.h
16.Ft "int"
17.Fn pam_set_item "pam_handle_t *pamh" "int item_type" "const void *item"
18.Sh DESCRIPTION
19The
20.Fn pam_set_item
21function sets the item specified by the
22.Fa item_type
23argument to a copy of the object pointed to by the
24.Fa item
25argument.
26The item is stored in the PAM context specified by the
27.Fa pamh
28argument.
29See
30.Xr pam_get_item 3
31for a list of recognized item types.
32.Sh RETURN VALUES
33The
34.Fn pam_set_item
35function returns one of the following values:
36.Bl -tag -width 18n
37.It Bq Er PAM_BUF_ERR
38Memory buffer error.
39.It Bq Er PAM_SYMBOL_ERR
40Invalid symbol.
41.It Bq Er PAM_SYSTEM_ERR
42System error.
43.El
44.Sh SEE ALSO
45.Xr pam 3 ,
46.Xr pam_get_item 3 ,
47.Xr pam_strerror 3
48.Sh STANDARDS
49.Rs
50.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
51.%D "June 1997"
52.Re
53.Sh AUTHORS
54The
55.Fn pam_set_item
56function and this manual page were
57developed for the
58.Fx
59Project by ThinkSec AS and Network Associates Laboratories, the
60Security Research Division of Network Associates, Inc.\& under
61DARPA/SPAWAR contract N66001-01-C-8035
62.Pq Dq CBOSS ,
63as part of the DARPA CHATS research program.
64.Pp
65The OpenPAM library is maintained by
66.An Dag-Erling Sm\(/orgrav Aq des@des.no .
67