Query: pam_vprompt
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PAM_PROMPT(3) Linux-PAM Manual PAM_PROMPT(3)NAMEpam_prompt, pam_vprompt - interface to conversation functionSYNOPSIS#include <security/pam_ext.h> void pam_prompt(pam_handle_t *pamh, int style, char **response, const char *fmt, ...); void pam_vprompt(pam_handle_t *pamh, int style, char **response, const char *fmt, va_list args);DESCRIPTIONThe pam_prompt function constructs a message from the specified format string and arguments and passes it to the conversation function as set by the service. Upon successful return, response is set to point to a string returned from the conversation function. This string is allocated on heap and should be freed.RETURN VALUESPAM_BUF_ERR Memory buffer error. PAM_CONV_ERR Conversation failure. PAM_SUCCESS Transaction was successful created. PAM_SYSTEM_ERR System error.SEE ALSOpam(8), pam_conv(3)STANDARDSThe pam_prompt and pam_vprompt functions are Linux-PAM extensions. Linux-PAM Manual 09/19/2013 PAM_PROMPT(3)