diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:31:22 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:31:22 +0000 |
commit | 47575925596c2af2a78c009fcdd14de72fc82d3e (patch) | |
tree | 2c353e5c8dc7a2b019b1d30853957021af631a42 /libpam_misc/include | |
parent | 8c7e950878780872acf82e924f58369c907ddbcb (diff) | |
download | pam-47575925596c2af2a78c009fcdd14de72fc82d3e.tar.gz pam-47575925596c2af2a78c009fcdd14de72fc82d3e.tar.bz2 pam-47575925596c2af2a78c009fcdd14de72fc82d3e.zip |
Relevant BUGIDs: task 15788, bugs 108297, 117476, 117474
Purpose of commit: merge in the autoconf stuff
Commit summary:
---------------
this is a merge of the 0-72 autoconf branch to something more
up to date. This commit will be followed by merging this
Linux-PAM-0-73pre-autoconf branch to the main trunk.
Diffstat (limited to 'libpam_misc/include')
-rw-r--r-- | libpam_misc/include/security/pam_misc.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libpam_misc/include/security/pam_misc.h b/libpam_misc/include/security/pam_misc.h new file mode 100644 index 00000000..fbf7a9f1 --- /dev/null +++ b/libpam_misc/include/security/pam_misc.h @@ -0,0 +1,56 @@ +/* $Id$ */ + +#ifndef __PAMMISC_H +#define __PAMMISC_H + +#include <security/pam_appl.h> + +/* include some useful macros */ + +#include <security/_pam_macros.h> + +/* functions defined in pam_misc.* libraries */ + +extern int misc_conv(int num_msg, const struct pam_message **msgm, + struct pam_response **response, void *appdata_ptr); + +#include <time.h> + +extern time_t pam_misc_conv_warn_time; /* time that we should warn user */ +extern time_t pam_misc_conv_die_time; /* cut-off time for input */ +extern const char *pam_misc_conv_warn_line; /* warning notice */ +extern const char *pam_misc_conv_die_line; /* cut-off remark */ +extern int pam_misc_conv_died; /* 1 = cut-off time reached (0 not) */ +extern int (*pam_binary_handler_fn)(const void *send, void **receive); + +/* + * Environment helper functions + */ + +/* transcribe given environment (to pam) */ +extern int pam_misc_paste_env(pam_handle_t *pamh + , const char * const * user_env); + +/* char **pam_misc_copy_env(pam_handle_t *pamh); + + This is no longer defined as a prototype because the X/Open XSSO + spec makes it clear that PAM's pam_getenvlist() does exactly + what this was needed for. + + A wrapper is still provided in the pam_misc library - so that + legacy applications will still work. But _BE_WARNED_ it will + disappear by the release of libpam 1.0 . */ + +/* delete environment as obtained from (pam_getenvlist) */ +extern char **pam_misc_drop_env(char **env); + +/* provide something like the POSIX setenv function for the (Linux-)PAM + * environment. */ + +extern int pam_misc_setenv(pam_handle_t *pamh, const char *name + , const char *value, int readonly); + +#endif + + + |