OPENPAM_SUBST(3) | Library Functions Manual | OPENPAM_SUBST(3) |
int
openpam_subst(const pam_handle_t *pamh, char *buf, size_t *bufsize, const char *template);
If buf is NULL, or if the buffer is too small to hold the expanded string, bufsize is updated to reflect the amount of space required to hold the entire string, and openpam_subst() returns PAM_TRY_AGAIN.
If openpam_subst() fails for any other reason, the bufsize argument is untouched, but part of the buffer may still have been overwritten.
Substitution codes are introduced by a percent character and correspond to PAM items:
September 12, 2014 | NetBSD 7.2 |