OPENPAM_GET_FEATURE(3) | MidnightBSD Library Functions Manual | OPENPAM_GET_FEATURE(3) |
openpam_get_feature
—
query the state of an optional feature
#include
<sys/types.h>
#include <security/pam_appl.h>
#include
<security/openpam.h>
int
openpam_get_feature
(int
feature, int
*onoff);
The
openpam_get_feature
()
function stores the current state of the specified feature in the variable
pointed to by its onoff argument.
The following features are recognized:
OPENPAM_RESTRICT_SERVICE_NAME
OPENPAM_VERIFY_POLICY_FILE
OPENPAM_RESTRICT_MODULE_NAME
OPENPAM_VERIFY_MODULE_FILE
The openpam_get_feature
() function returns
one of the following values:
PAM_SUCCESS
]PAM_BAD_FEATURE
]The openpam_get_feature
() function is an
OpenPAM extension.
The openpam_get_feature
() function and
this manual page were developed by Dag-Erling
Smørgrav
<des@des.no>.
February 24, 2019 | midnightbsd-3.1 |