1*0d9d0fd8Schristos.\" $NetBSD: openpam_set_feature.3,v 1.8 2023/06/30 21:46:20 christos Exp $ 223e44a77Schristos.\" 38fa0fefeSchristos.\" Generated from openpam_set_feature.c by gendoc.pl 4*0d9d0fd8Schristos.Dd June 27, 2023 523e44a77Schristos.Dt OPENPAM_SET_FEATURE 3 623e44a77Schristos.Os 723e44a77Schristos.Sh NAME 823e44a77Schristos.Nm openpam_set_feature 923e44a77Schristos.Nd enable or disable an optional feature 1023e44a77Schristos.Sh SYNOPSIS 1123e44a77Schristos.In sys/types.h 1223e44a77Schristos.In security/pam_appl.h 1323e44a77Schristos.In security/openpam.h 1423e44a77Schristos.Ft "int" 1523e44a77Schristos.Fn openpam_set_feature "int feature" "int onoff" 1623e44a77Schristos.Sh DESCRIPTION 1723e44a77Schristos.Bf Sy 188fa0fefeSchristosThis function is experimental and may be modified or removed in a future release without prior warning. 1923e44a77Schristos.Ef 2023e44a77Schristos.Pp 2123e44a77SchristosThe 2223e44a77Schristos.Fn openpam_set_feature 2323e44a77Schristosfunction sets the state of the specified 2423e44a77Schristosfeature to the value specified by the 2523e44a77Schristos.Fa onoff 2623e44a77Schristosargument. 2723e44a77SchristosSee 2823e44a77Schristos.Xr openpam_get_feature 3 2923e44a77Schristosfor a list of recognized features. 3023e44a77Schristos.Pp 3123e44a77Schristos.Sh RETURN VALUES 3223e44a77SchristosThe 3323e44a77Schristos.Fn openpam_set_feature 3423e44a77Schristosfunction returns one of the following values: 3523e44a77Schristos.Bl -tag -width 18n 364cb4af11Schristos.It Bq Er PAM_SUCCESS 374cb4af11SchristosSuccess. 384cb4af11Schristos.It Bq Er PAM_BAD_FEATURE 394cb4af11SchristosUnrecognized or restricted feature. 4023e44a77Schristos.El 4123e44a77Schristos.Sh SEE ALSO 4223e44a77Schristos.Xr openpam_get_feature 3 , 4323e44a77Schristos.Xr pam 3 , 4423e44a77Schristos.Xr pam_strerror 3 4523e44a77Schristos.Sh STANDARDS 4623e44a77SchristosThe 4723e44a77Schristos.Fn openpam_set_feature 4823e44a77Schristosfunction is an OpenPAM extension. 4923e44a77Schristos.Sh AUTHORS 5023e44a77SchristosThe 5123e44a77Schristos.Fn openpam_set_feature 5223e44a77Schristosfunction and this manual page were 5323e44a77Schristosdeveloped by 54a5684d07Swiz.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no . 55