pam_prompt3
Call the conversation function
Usage
#include <sys/types.h>
#include <security/pam_appl.h>
int
pam_prompt(const pam_handle_t *pamh, int style, char **resp, const char *fmt, ...);
Overview
The pam_prompt() function constructs a message from the specified format string and arguments and passes it to the given PAM context's conversation function.
A pointer to the response, or NULL if the conversation function did not return one, is stored in the location pointed to by the resp argument.
See pam_vprompt(3) for further details.
Return values
The pam_prompt() function returns one of the following values:
- [PAM_SUCCESS]
-
Success.
- [PAM_BUF_ERR]
-
Memory buffer error.
- [PAM_CONV_ERR]
-
Conversation failure.
- [PAM_SYSTEM_ERR]
-
System error.
Releases
56 releases since FreeBSD 5.0-RELEASE; the text changed 15 times.