table of contents
MISC_CONV(3) | Linux-PAM Manual | MISC_CONV(3) |
NAME¶
misc_conv - text based conversation function
SYNOPSIS¶
#include <security/pam_misc.h>
int misc_conv(int num_msg, const struct pam_message **msgm, struct pam_response **response, void *appdata_ptr);
DESCRIPTION¶
The misc_conv function is part of libpam_misc and not of the standard libpam library. This function will prompt the user with the appropriate comments and obtain the appropriate inputs as directed by authentication modules.
In addition to simply slotting into the appropriate pam_conv(3), this function provides some time-out facilities. The function exports five variables that can be used by an application programmer to limit the amount of time this conversation function will spend waiting for the user to type something. The five variabls are as follows:
time_t pam_misc_conv_warn_time;
const char *pam_misc_conv_warn_line;
time_t pam_misc_conv_die_time;
const char *pam_misc_conv_die_line;
int pam_misc_conv_died;
The following two function pointers are available for supporting binary prompts in the conversation function. They are optimized for the current incarnation of the libpamc library and are subject to change.
int (*pam_binary_handler_fn)(void *appdata, pamc_bp_t *prompt_p);
int (*pam_binary_handler_free)(void *appdata, pamc_bp_t *delete_me);
SEE ALSO¶
STANDARDS¶
The misc_conv function is part of the libpam_misc Library and not defined in any standard.
09/19/2013 | Linux-PAM Manual |