xref: /freebsd/contrib/openpam/doc/man/pam_get_data.3 (revision fe9807548e5c7742d9d403d1c67d81745e785a2c)
15c1eca55SDag-Erling Smørgrav.\"-
231c521e9SDag-Erling Smørgrav.\" Copyright (c) 2001-2003 Networks Associates Technology, Inc.
3fe980754SDag-Erling Smørgrav.\" Copyright (c) 2004-2007 Dag-Erling Smørgrav
45c1eca55SDag-Erling Smørgrav.\" All rights reserved.
55c1eca55SDag-Erling Smørgrav.\"
65c1eca55SDag-Erling Smørgrav.\" This software was developed for the FreeBSD Project by ThinkSec AS and
7ee02aaa9SDag-Erling Smørgrav.\" Network Associates Laboratories, the Security Research Division of
8ee02aaa9SDag-Erling Smørgrav.\" Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
9ee02aaa9SDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
105c1eca55SDag-Erling Smørgrav.\"
115c1eca55SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
125c1eca55SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
135c1eca55SDag-Erling Smørgrav.\" are met:
145c1eca55SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
155c1eca55SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
165c1eca55SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
175c1eca55SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
185c1eca55SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
195c1eca55SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
205c1eca55SDag-Erling Smørgrav.\"    products derived from this software without specific prior written
215c1eca55SDag-Erling Smørgrav.\"    permission.
225c1eca55SDag-Erling Smørgrav.\"
235c1eca55SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
245c1eca55SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
255c1eca55SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
265c1eca55SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
275c1eca55SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
285c1eca55SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
295c1eca55SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
305c1eca55SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
315c1eca55SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
325c1eca55SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
335c1eca55SDag-Erling Smørgrav.\" SUCH DAMAGE.
345c1eca55SDag-Erling Smørgrav.\"
35ee02aaa9SDag-Erling Smørgrav.\" $P4$
365c1eca55SDag-Erling Smørgrav.\"
37fe980754SDag-Erling Smørgrav.Dd December 21, 2007
385c1eca55SDag-Erling Smørgrav.Dt PAM_GET_DATA 3
395c1eca55SDag-Erling Smørgrav.Os
405c1eca55SDag-Erling Smørgrav.Sh NAME
415c1eca55SDag-Erling Smørgrav.Nm pam_get_data
425c1eca55SDag-Erling Smørgrav.Nd get module information
435c1eca55SDag-Erling Smørgrav.Sh LIBRARY
445c1eca55SDag-Erling Smørgrav.Lb libpam
455c1eca55SDag-Erling Smørgrav.Sh SYNOPSIS
46644f2b7cSDag-Erling Smørgrav.In sys/types.h
475c1eca55SDag-Erling Smørgrav.In security/pam_appl.h
48ca236e63SDag-Erling Smørgrav.Ft "int"
49fe980754SDag-Erling Smørgrav.Fn pam_get_data "const pam_handle_t *pamh" "const char *module_data_name" "const void **data"
505c1eca55SDag-Erling Smørgrav.Sh DESCRIPTION
515c1eca55SDag-Erling SmørgravThe
525c1eca55SDag-Erling Smørgrav.Nm
5346acc370SDag-Erling Smørgravfunction looks up the opaque object associated with
5446acc370SDag-Erling Smørgravthe string specified by the
55b33ab329SDag-Erling Smørgrav.Fa module_data_name
5646acc370SDag-Erling Smørgravargument, in the PAM
5746acc370SDag-Erling Smørgravcontext specified by the
58b33ab329SDag-Erling Smørgrav.Fa pamh
5946acc370SDag-Erling Smørgravargument.
6046acc370SDag-Erling SmørgravA pointer to the object is stored in the location pointed to by the
61b33ab329SDag-Erling Smørgrav.Fa data
6246acc370SDag-Erling Smørgravargument.
6346acc370SDag-Erling Smørgrav.Pp
6446acc370SDag-Erling SmørgravThis function and its counterpart
6546acc370SDag-Erling Smørgrav.Xr pam_set_data 3
6646acc370SDag-Erling Smørgravare useful for managing
6746acc370SDag-Erling Smørgravdata that are meaningful only to a particular service module.
685c1eca55SDag-Erling Smørgrav.Sh RETURN VALUES
695c1eca55SDag-Erling SmørgravThe
7046acc370SDag-Erling Smørgrav.Nm
715c1eca55SDag-Erling Smørgravfunction returns one of the following values:
7246acc370SDag-Erling Smørgrav.Bl -tag -width 18n
7346acc370SDag-Erling Smørgrav.It Bq Er PAM_NO_MODULE_DATA
7446acc370SDag-Erling SmørgravModule data not found.
7546acc370SDag-Erling Smørgrav.It Bq Er PAM_SYSTEM_ERR
7646acc370SDag-Erling SmørgravSystem error.
775c1eca55SDag-Erling Smørgrav.El
785c1eca55SDag-Erling Smørgrav.Sh SEE ALSO
7946acc370SDag-Erling Smørgrav.Xr pam 3 ,
8046acc370SDag-Erling Smørgrav.Xr pam_set_data 3 ,
8146acc370SDag-Erling Smørgrav.Xr pam_strerror 3
825c1eca55SDag-Erling Smørgrav.Sh STANDARDS
835c1eca55SDag-Erling Smørgrav.Rs
845c1eca55SDag-Erling Smørgrav.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
855c1eca55SDag-Erling Smørgrav.%D "June 1997"
865c1eca55SDag-Erling Smørgrav.Re
875c1eca55SDag-Erling Smørgrav.Sh AUTHORS
885c1eca55SDag-Erling SmørgravThe
895c1eca55SDag-Erling Smørgrav.Nm
90ca236e63SDag-Erling Smørgravfunction and this manual page were developed for the
91ca236e63SDag-Erling Smørgrav.Fx
92ca236e63SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
939bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
94ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
955c1eca55SDag-Erling Smørgrav.Pq Dq CBOSS ,
965c1eca55SDag-Erling Smørgravas part of the DARPA CHATS research program.
97