Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / contrib / libpam / libpam_misc / pam_misc.h
1 /* $Id: pam_misc.h,v 1.3 1997/01/04 20:15:52 morgan Exp morgan $ */
2
3 /* $Log: pam_misc.h,v $
4  * Revision 1.3  1997/01/04 20:15:52  morgan
5  * added timeout to misc_conv
6  *
7  * Revision 1.2  1996/12/01 03:27:00  morgan
8  * add env prototypes
9  *
10  * Revision 1.1  1996/07/06 19:31:38  morgan
11  * Initial revision
12  *
13  * Revision 1.1  1996/07/06 19:16:30  morgan
14  * Initial revision
15  */
16
17 #ifndef __PAMMISC_H
18 #define __PAMMISC_H
19
20 #include <security/pam_appl.h>
21
22 /* include some useful macros */
23
24 #include <security/_pam_macros.h>
25
26 /* functions defined in pam_misc.* libraries */
27
28 extern int misc_conv(int num_msg, const struct pam_message **msgm,
29                      struct pam_response **response, void *appdata_ptr);
30
31 #include <time.h>
32
33 extern time_t pam_misc_conv_warn_time; /* time that we should warn user */
34 extern time_t pam_misc_conv_die_time;         /* cut-off time for input */
35 extern const char *pam_misc_conv_warn_line;           /* warning notice */
36 extern const char *pam_misc_conv_die_line;            /* cut-off remark */
37 extern int pam_misc_conv_died;      /* 1 = cut-off time reached (0 not) */
38 extern int (*pam_binary_handler_fn)(const void *send, void **receive);
39
40 /*
41  * Environment helper functions
42  */
43
44 /* transcribe given environment (to pam) */
45 extern int pam_misc_paste_env(pam_handle_t *pamh
46                               , const char * const * user_env);
47
48 /* char **pam_misc_copy_env(pam_handle_t *pamh);
49
50    This is no longer defined as a prototype because the X/Open XSSO
51    spec makes it clear that PAM's pam_getenvlist() does exactly
52    what this was needed for.
53
54    A wrapper is still provided in the pam_misc library - so that
55    legacy applications will still work.  But _BE_WARNED_ it will
56    disappear by the release of libpam 1.0 . */
57
58 /* delete environment as obtained from (pam_getenvlist) */
59 extern char **pam_misc_drop_env(char **env);
60
61 /* provide something like the POSIX setenv function for the (Linux-)PAM
62  * environment. */
63
64 extern int pam_misc_setenv(pam_handle_t *pamh, const char *name
65                            , const char *value, int readonly);
66
67 #endif
68
69  
70