1PAM_PROMPT(3) Linux-PAM Manual PAM_PROMPT(3)
2
3
4
6 pam_prompt, pam_vprompt - interface to conversation function
7
9 #include <security/pam_ext.h>
10
11 void pam_prompt(pam_handle_t *pamh, int style, char **response,
12 const char *fmt, ...);
13
14 void pam_vprompt(pam_handle_t *pamh, int style, char **response,
15 const char *fmt, va_list args);
16
18 The pam_prompt function constructs a message from the specified format
19 string and arguments and passes it to the conversation function as set
20 by the service. Upon successful return, response is set to point to a
21 string returned from the conversation function. This string is
22 allocated on heap and should be freed.
23
25 PAM_BUF_ERR
26 Memory buffer error.
27
28 PAM_CONV_ERR
29 Conversation failure.
30
31 PAM_SUCCESS
32 Transaction was successful created.
33
34 PAM_SYSTEM_ERR
35 System error.
36
38 pam(8), pam_conv(3)
39
41 The pam_prompt and pam_vprompt functions are Linux-PAM extensions.
42
43
44
45Linux-PAM Manual 03/02/2009 PAM_PROMPT(3)