xref: /freebsd/contrib/openpam/doc/man/pam_set_data.3 (revision f3b0ac3409e4c3c6ec2a74432ee5b410f087b93d)
1ce77a8d6SDag-Erling Smørgrav.\" Generated from pam_set_data.c by gendoc.pl
2*f3b0ac34SDag-Erling Smørgrav.\" $Id: pam_set_data.c 913 2017-01-21 15:11:12Z des $
3*f3b0ac34SDag-Erling Smørgrav.Dd February 19, 2017
45c1eca55SDag-Erling Smørgrav.Dt PAM_SET_DATA 3
55c1eca55SDag-Erling Smørgrav.Os
65c1eca55SDag-Erling Smørgrav.Sh NAME
75c1eca55SDag-Erling Smørgrav.Nm pam_set_data
85c1eca55SDag-Erling Smørgrav.Nd set module information
95c1eca55SDag-Erling Smørgrav.Sh SYNOPSIS
10644f2b7cSDag-Erling Smørgrav.In sys/types.h
115c1eca55SDag-Erling Smørgrav.In security/pam_appl.h
12ca236e63SDag-Erling Smørgrav.Ft "int"
135c1eca55SDag-Erling Smørgrav.Fn pam_set_data "pam_handle_t *pamh" "const char *module_data_name" "void *data" "void (*cleanup)(pam_handle_t *pamh, void *data, int pam_end_status)"
145c1eca55SDag-Erling Smørgrav.Sh DESCRIPTION
155c1eca55SDag-Erling SmørgravThe
162f3ed619SDag-Erling Smørgrav.Fn pam_set_data
1746acc370SDag-Erling Smørgravfunction associates a pointer to an opaque object
1846acc370SDag-Erling Smørgravwith an arbitrary string specified by the
19b33ab329SDag-Erling Smørgrav.Fa module_data_name
2046acc370SDag-Erling Smørgravargument,
2146acc370SDag-Erling Smørgravin the PAM context specified by the
22b33ab329SDag-Erling Smørgrav.Fa pamh
2346acc370SDag-Erling Smørgravargument.
2446acc370SDag-Erling Smørgrav.Pp
2546acc370SDag-Erling SmørgravIf not
2646acc370SDag-Erling Smørgrav.Dv NULL ,
2746acc370SDag-Erling Smørgravthe
28b33ab329SDag-Erling Smørgrav.Fa cleanup
2946acc370SDag-Erling Smørgravargument should point to a function
3046acc370SDag-Erling Smørgravresponsible for releasing the resources associated with the object.
3146acc370SDag-Erling Smørgrav.Pp
3246acc370SDag-Erling SmørgravThis function and its counterpart
3346acc370SDag-Erling Smørgrav.Xr pam_get_data 3
3446acc370SDag-Erling Smørgravare useful for managing
3546acc370SDag-Erling Smørgravdata that are meaningful only to a particular service module.
365c1eca55SDag-Erling Smørgrav.Sh RETURN VALUES
375c1eca55SDag-Erling SmørgravThe
382f3ed619SDag-Erling Smørgrav.Fn pam_set_data
395c1eca55SDag-Erling Smørgravfunction returns one of the following values:
4046acc370SDag-Erling Smørgrav.Bl -tag -width 18n
4146acc370SDag-Erling Smørgrav.It Bq Er PAM_BUF_ERR
4246acc370SDag-Erling SmørgravMemory buffer error.
4346acc370SDag-Erling Smørgrav.It Bq Er PAM_SYSTEM_ERR
4446acc370SDag-Erling SmørgravSystem error.
455c1eca55SDag-Erling Smørgrav.El
465c1eca55SDag-Erling Smørgrav.Sh SEE ALSO
4746acc370SDag-Erling Smørgrav.Xr pam 3 ,
4846acc370SDag-Erling Smørgrav.Xr pam_get_data 3 ,
4946acc370SDag-Erling Smørgrav.Xr pam_strerror 3
505c1eca55SDag-Erling Smørgrav.Sh STANDARDS
515c1eca55SDag-Erling Smørgrav.Rs
525c1eca55SDag-Erling Smørgrav.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
535c1eca55SDag-Erling Smørgrav.%D "June 1997"
545c1eca55SDag-Erling Smørgrav.Re
555c1eca55SDag-Erling Smørgrav.Sh AUTHORS
565c1eca55SDag-Erling SmørgravThe
572f3ed619SDag-Erling Smørgrav.Fn pam_set_data
582f3ed619SDag-Erling Smørgravfunction and this manual page were
592f3ed619SDag-Erling Smørgravdeveloped for the
60ca236e63SDag-Erling Smørgrav.Fx
612f3ed619SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
629bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
63ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
645c1eca55SDag-Erling Smørgrav.Pq Dq CBOSS ,
655c1eca55SDag-Erling Smørgravas part of the DARPA CHATS research program.
66ce77a8d6SDag-Erling Smørgrav.Pp
67ce77a8d6SDag-Erling SmørgravThe OpenPAM library is maintained by
68*f3b0ac34SDag-Erling Smørgrav.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
69