xref: /freebsd/contrib/openpam/doc/man/openpam_set_option.3 (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1.\" Generated from openpam_set_option.c by gendoc.pl
2.\" $OpenPAM: openpam_set_option.c 938 2017-04-30 21:34:42Z des $
3.Dd February 24, 2019
4.Dt OPENPAM_SET_OPTION 3
5.Os
6.Sh NAME
7.Nm openpam_set_option
8.Nd sets the value of a module option
9.Sh SYNOPSIS
10.In sys/types.h
11.In security/pam_appl.h
12.In security/openpam.h
13.Ft "int"
14.Fn openpam_set_option "pam_handle_t *pamh" "const char *option" "const char *value"
15.Sh DESCRIPTION
16The
17.Fn openpam_set_option
18function sets the specified option in the
19context of the currently executing service module.
20.Pp
21.Sh RETURN VALUES
22The
23.Fn openpam_set_option
24function returns one of the following values:
25.Bl -tag -width 18n
26.It Bq Er PAM_SUCCESS
27Success.
28.It Bq Er PAM_BUF_ERR
29Memory buffer error.
30.It Bq Er PAM_SYSTEM_ERR
31System error.
32.El
33.Sh SEE ALSO
34.Xr openpam_get_option 3 ,
35.Xr pam 3 ,
36.Xr pam_strerror 3
37.Sh STANDARDS
38The
39.Fn openpam_set_option
40function is an OpenPAM extension.
41.Sh AUTHORS
42The
43.Fn openpam_set_option
44function and this manual page were
45developed for the
46.Fx
47Project by ThinkSec AS and Network Associates Laboratories, the
48Security Research Division of Network Associates, Inc.\& under
49DARPA/SPAWAR contract N66001-01-C-8035
50.Pq Dq CBOSS ,
51as part of the DARPA CHATS research program.
52.Pp
53The OpenPAM library is maintained by
54.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
55