1MISC_CONV(3)                   Linux-PAM Manual                   MISC_CONV(3)
2
3
4

NAME

6       misc_conv - text based conversation function
7

SYNOPSIS

9       #include <security/pam_misc.h>
10
11       void misc_conv(int num_msg, const struct pam_message **msgm,
12                      struct pam_response **response, void *appdata_ptr);
13

DESCRIPTION

15       The misc_conv function is part of libpam_misc and not of the standard
16       libpam library. This function will prompt the user with the appropriate
17       comments and obtain the appropriate inputs as directed by
18       authentication modules.
19
20       In addition to simply slotting into the appropriate pam_conv(3), this
21       function provides some time-out facilities. The function exports five
22       variables that can be used by an application programmer to limit the
23       amount of time this conversation function will spend waiting for the
24       user to type something. The five variabls are as follows:
25
26       time_t pam_misc_conv_warn_time;
27          This variable contains the time (as returned by time(2)) that the
28          user should be first warned that the clock is ticking. By default it
29          has the value 0, which indicates that no such warning will be given.
30          The application may set its value to sometime in the future, but
31          this should be done prior to passing control to the Linux-PAM
32          library.
33
34       const char *pam_misc_conv_warn_line;
35          Used in conjuction with pam_misc_conv_warn_time, this variable is a
36          pointer to the string that will be displayed when it becomes time to
37          warn the user that the timeout is approaching. Its default value is
38          a translated version of “...Time is running out...”, but this can be
39          changed by the application prior to passing control to Linux-PAM.
40
41       time_t pam_misc_conv_die_time;
42          This variable contains the time (as returned by time(2)) that the
43          will time out. By default it has the value 0, which indicates that
44          the conversation function will not timeout. The application may set
45          its value to sometime in the future, but this should be done prior
46          to passing control to the Linux-PAM library.
47
48       const char *pam_misc_conv_die_line;
49          Used in conjuction with pam_misc_conv_die_time, this variable is a
50          pointer to the string that will be displayed when the conversation
51          times out. Its default value is a translated version of “...Sorry,
52          your time is up!”, but this can be changed by the application prior
53          to passing control to Linux-PAM.
54
55       int pam_misc_conv_died;
56          Following a return from the Linux-PAM libraray, the value of this
57          variable indicates whether the conversation has timed out. A value
58          of 1 indicates the time-out occurred.
59
60       The following two function pointers are available for supporting binary
61       prompts in the conversation function. They are optimized for the
62       current incarnation of the libpamc library and are subject to change.
63
64       int (*pam_binary_handler_fn)(void *appdata, pamc_bp_t *prompt_p);
65          This function pointer is initialized to NULL but can be filled with
66          a function that provides machine-machine (hidden) message exchange.
67          It is intended for use with hidden authentication protocols such as
68          RSA or Diffie-Hellman key exchanges. (This is still under
69          development.)
70
71       int (*pam_binary_handler_free)(void *appdata, pamc_bp_t *delete_me);
72          This function pointer is initialized to PAM_BP_RENEW(delete_me, 0,
73          0), but can be redefined as desired by the application.
74

SEE ALSO

76       pam_conv(3), pam(8)
77

STANDARDS

79       The misc_conv function is part of the libpam_misc Library and not
80       defined in any standard.
81
82
83
84Linux-PAM Manual                  06/27/2006                      MISC_CONV(3)
Impressum