OpenPAM/lib
Dag-Erling Smørgrav 96357f3c52 Add an openpam_straddch() function that appends a character to a
string, reallocating the string if necessary.

Add an openpam_readword() function that reads a single word from a
file according to the usual shell quoting rules.

Add an openpam_readlinev() function that uses openpam_readword() to
read an entire line and return a list of the words it contained.

Rewrite openpam_parse_chain() using openpam_readlinev(), which greatly
simplifies the code and ensures correct parsing of module option.

Thanks to Maëlle Lesage for pointing out the issue and writing an
early version of what became the main loop in openpam_readword().


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@547 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-01 15:01:21 +00:00
..
Makefile.am Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_borrow_cred.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_check_owner_perms.c Even though I now prefer the 2-clause BSD license, for practical 2012-03-31 22:11:34 +00:00
openpam_configure.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_constants.c Reorganize the headers and centralize the string tables. 2011-11-12 00:12:32 +00:00
openpam_constants.h Reorganize the headers and centralize the string tables. 2011-11-12 00:12:32 +00:00
openpam_ctype.h Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_debug.h Add another log level, PAM_LOG_LIBDEBUG, with a negative priority. It 2012-01-11 00:13:25 +00:00
openpam_dispatch.c Report an error if one of the modules in the chain does not implement 2011-12-07 01:28:05 +00:00
openpam_dynamic.c Improve error messages by logging the full path of the module we tried 2012-01-11 00:45:09 +00:00
openpam_findenv.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_free_data.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_free_envlist.c This was written long after the DARPA contract ended. 2011-10-22 02:47:36 +00:00
openpam_get_option.c Redundant #include 2012-03-31 14:24:37 +00:00
openpam_impl.h Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_load.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_log.c Through oversight, the PAM_LOG_LIBDEBUG case was left out in the 2012-03-31 22:47:15 +00:00
openpam_nullconv.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_readline.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_readlinev.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_readword.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_restore_cred.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_set_option.c Redundant #include 2012-03-31 14:24:53 +00:00
openpam_static.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
openpam_straddch.c Add an openpam_straddch() function that appends a character to a 2012-04-01 15:01:21 +00:00
openpam_strlcmp.h Provide strlcmp(3) internally on systems that don't already have it. 2011-11-03 15:29:24 +00:00
openpam_strlcpy.h dst can't be const, you idiot. 2011-11-20 02:04:17 +00:00
openpam_subst.c Even though I now prefer the 2-clause BSD license, for practical 2012-03-31 22:11:34 +00:00
openpam_ttyconv.c Rename sigset to the_sigset to avoid shadowing sigset(3). 2012-02-26 03:23:59 +00:00
pam_acct_mgmt.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_authenticate.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_authenticate_secondary.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_chauthtok.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_close_session.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_end.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_error.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_get_authtok.c Use a different default prompt if PAM_RHOST != PAM_HOST. 2011-12-31 13:14:23 +00:00
pam_get_data.c Document that the item argument (for pam_get_item(3)) and the data 2011-10-22 01:03:23 +00:00
pam_get_item.c Reorganize the headers and centralize the string tables. 2011-11-12 00:12:32 +00:00
pam_get_mapped_authtok.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_get_mapped_username.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_get_user.c Add a new API function, openpam_subst(3), which replaces substitution 2011-10-29 18:31:11 +00:00
pam_getenv.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_getenvlist.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_info.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_open_session.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_prompt.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_putenv.c spelling 2012-03-31 20:53:22 +00:00
pam_set_data.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_set_item.c Disallow changing the service name. 2011-11-21 16:20:45 +00:00
pam_set_mapped_authtok.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_set_mapped_username.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_setcred.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_setenv.c spelling 2012-03-31 20:53:22 +00:00
pam_sm_acct_mgmt.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_authenticate.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_authenticate_secondary.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_chauthtok.c Mention that the service function is called twice. 2011-11-02 23:33:43 +00:00
pam_sm_close_session.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_get_mapped_authtok.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_get_mapped_username.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_open_session.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_set_mapped_authtok.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_set_mapped_username.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_sm_setcred.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_start.c Style / consistency 2011-12-18 14:00:33 +00:00
pam_strerror.c Reorganize the headers and centralize the string tables. 2011-11-12 00:12:32 +00:00
pam_verror.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_vinfo.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00
pam_vprompt.c Update copyright and release notes. 2011-09-13 12:00:13 +00:00