1.\" $NetBSD: openpam_set_option.3,v 1.9 2023/06/30 21:46:20 christos Exp $ 2.\" 3.\" Generated from openpam_set_option.c by gendoc.pl 4.Dd June 27, 2023 5.Dt OPENPAM_SET_OPTION 3 6.Os 7.Sh NAME 8.Nm openpam_set_option 9.Nd sets the value of a module option 10.Sh SYNOPSIS 11.In sys/types.h 12.In security/pam_appl.h 13.In security/openpam.h 14.Ft "int" 15.Fn openpam_set_option "pam_handle_t *pamh" "const char *option" "const char *value" 16.Sh DESCRIPTION 17The 18.Fn openpam_set_option 19function sets the specified option in the 20context of the currently executing service module. 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