pam_vprompt.3 revision 1.5 1 1.5 christos <<<<<<< pam_vprompt.3
2 1.4 christos .\" $NetBSD: pam_vprompt.3,v 1.5 2014/10/24 18:17:56 christos Exp $
3 1.1 christos .\"
4 1.5 christos =======
5 1.5 christos >>>>>>> 1.1.1.4
6 1.4 christos .\" Generated from pam_vprompt.c by gendoc.pl
7 1.4 christos .\" Id: pam_vprompt.c 648 2013-03-05 17:54:27Z des
8 1.5 christos .Dd September 12, 2014
9 1.1 christos .Dt PAM_VPROMPT 3
10 1.1 christos .Os
11 1.1 christos .Sh NAME
12 1.1 christos .Nm pam_vprompt
13 1.1 christos .Nd call the conversation function
14 1.1 christos .Sh LIBRARY
15 1.1 christos .Lb libpam
16 1.1 christos .Sh SYNOPSIS
17 1.1 christos .In sys/types.h
18 1.1 christos .In security/pam_appl.h
19 1.1 christos .Ft "int"
20 1.1 christos .Fn pam_vprompt "const pam_handle_t *pamh" "int style" "char **resp" "const char *fmt" "va_list ap"
21 1.1 christos .Sh DESCRIPTION
22 1.1 christos The
23 1.3 christos .Fn pam_vprompt
24 1.1 christos function constructs a string from the
25 1.1 christos .Fa fmt
26 1.1 christos and
27 1.1 christos .Fa ap
28 1.1 christos arguments using
29 1.1 christos .Xr vsnprintf 3 ,
30 1.1 christos and passes it to the given PAM context's
31 1.1 christos conversation function.
32 1.1 christos .Pp
33 1.1 christos The
34 1.1 christos .Fa style
35 1.1 christos argument specifies the type of interaction requested, and
36 1.1 christos must be one of the following:
37 1.1 christos .Bl -tag -width 18n
38 1.1 christos .It Dv PAM_PROMPT_ECHO_OFF
39 1.1 christos Display the message and obtain the user's response without
40 1.1 christos displaying it.
41 1.1 christos .It Dv PAM_PROMPT_ECHO_ON
42 1.1 christos Display the message and obtain the user's response.
43 1.1 christos .It Dv PAM_ERROR_MSG
44 1.1 christos Display the message as an error message, and do not wait
45 1.1 christos for a response.
46 1.1 christos .It Dv PAM_TEXT_INFO
47 1.1 christos Display the message as an informational message, and do
48 1.1 christos not wait for a response.
49 1.1 christos .El
50 1.1 christos .Pp
51 1.1 christos A pointer to the response, or
52 1.1 christos .Dv NULL
53 1.1 christos if the conversation function did
54 1.1 christos not return one, is stored in the location pointed to by the
55 1.1 christos .Fa resp
56 1.1 christos argument.
57 1.1 christos .Pp
58 1.1 christos The message and response should not exceed
59 1.1 christos .Dv PAM_MAX_MSG_SIZE
60 1.1 christos or
61 1.1 christos .Dv PAM_MAX_RESP_SIZE ,
62 1.1 christos respectively.
63 1.1 christos If they do, they may be truncated.
64 1.1 christos .Sh RETURN VALUES
65 1.1 christos The
66 1.3 christos .Fn pam_vprompt
67 1.1 christos function returns one of the following values:
68 1.1 christos .Bl -tag -width 18n
69 1.1 christos .It Bq Er PAM_BUF_ERR
70 1.1 christos Memory buffer error.
71 1.1 christos .It Bq Er PAM_CONV_ERR
72 1.1 christos Conversation failure.
73 1.1 christos .It Bq Er PAM_SYSTEM_ERR
74 1.1 christos System error.
75 1.1 christos .El
76 1.1 christos .Sh SEE ALSO
77 1.1 christos .Xr pam 3 ,
78 1.1 christos .Xr pam_error 3 ,
79 1.1 christos .Xr pam_info 3 ,
80 1.1 christos .Xr pam_prompt 3 ,
81 1.1 christos .Xr pam_strerror 3 ,
82 1.1 christos .Xr pam_verror 3 ,
83 1.1 christos .Xr pam_vinfo 3 ,
84 1.1 christos .Xr vsnprintf 3
85 1.1 christos .Sh STANDARDS
86 1.1 christos The
87 1.3 christos .Fn pam_vprompt
88 1.1 christos function is an OpenPAM extension.
89 1.1 christos .Sh AUTHORS
90 1.1 christos The
91 1.3 christos .Fn pam_vprompt
92 1.3 christos function and this manual page were
93 1.3 christos developed for the
94 1.1 christos .Fx
95 1.3 christos Project by ThinkSec AS and Network Associates Laboratories, the
96 1.1 christos Security Research Division of Network Associates, Inc.\& under
97 1.1 christos DARPA/SPAWAR contract N66001-01-C-8035
98 1.1 christos .Pq Dq CBOSS ,
99 1.1 christos as part of the DARPA CHATS research program.
100 1.4 christos .Pp
101 1.4 christos The OpenPAM library is maintained by
102 1.4 christos .An Dag-Erling Sm\(/orgrav Aq des (a] des.no .
103