567ecaa2afClean up the dynamic module loading code, and add support for the module path which was added in r695.
Dag-Erling Smørgrav
2013-03-11 16:33:27 +0000
2b8f7a6154nit: the argument is a module name, which may or may not be a path.
Dag-Erling Smørgrav
2013-03-11 15:44:22 +0000
fe2e691204Use dlfunc() if available; if not, fake it in terms of dlsym().
Dag-Erling Smørgrav
2013-03-11 15:08:52 +0000
785bc19867Move openpam_policy_path into openpam_constants.c, and add a corresponding openpam_module_path.
Dag-Erling Smørgrav
2013-03-11 14:10:13 +0000
26d543d484__unused is a FreeBSDism, use OPENPAM_UNUSED().
Dag-Erling Smørgrav
2013-03-06 22:59:05 +0000
efe65a2cabAdd a macro for marking a variable or function argument as unused.
Dag-Erling Smørgrav
2013-03-06 22:58:45 +0000
7bcd5bb700Split up the liboath header files.
Dag-Erling Smørgrav
2013-03-06 14:10:09 +0000
93a9982d45Link with -lcrypto
Dag-Erling Smørgrav
2013-03-05 19:03:59 +0000
0ba869e872Test cases for base 32 and 64 encoders
Dag-Erling Smørgrav
2013-03-05 18:54:22 +0000
a810f26399OpenSSL_add_all_algorithms() is actually a macro, and therefore unsuitable for the purpose of locating libcrypto.
Dag-Erling Smørgrav
2013-03-05 18:40:37 +0000
7ab83ce826Support tests that require arguments
Dag-Erling Smørgrav
2013-03-05 18:11:59 +0000
e6ad0c668cUpdate TODO list
Dag-Erling Smørgrav
2013-03-05 17:58:43 +0000
bbcd45ace7Add code to load a key and obtain and verify a response from the user.
Dag-Erling Smørgrav
2013-03-05 15:25:22 +0000
e39d0abb85- Add a provisional API for computing the current HOTP or TOTP code. - Add a provisional API for matching a user response. - Add a provisional API for generating a dummy key. When one of the matching functions recognizes a dummy key, it will go through the motions but never report a match.
Dag-Erling Smørgrav
2013-03-05 15:24:00 +0000
2fe7fdd088Move WITH_PAM_* up from the leaf Makefiles into the parent Makefile.
Dag-Erling Smørgrav
2013-03-05 10:27:29 +0000
a263be7c26Fix encoder bugs: increment *olen rather than olen, and use the correct mask for base64 (which was copy-pasted from the base32 code)
Dag-Erling Smørgrav
2013-03-05 09:53:33 +0000
a9c6523c52If setlogmask(3) is available, suppress logging during tests.
Dag-Erling Smørgrav
2013-03-04 10:38:45 +0000
9187daa2acSplit up AC_CHECK_FUNCS.
Dag-Erling Smørgrav
2013-03-04 10:37:36 +0000
2ec4f668a9Add prototypes for the functions in oath_key.c.
Dag-Erling Smørgrav
2013-03-03 23:34:50 +0000
a1ee57dd24Start preparing for the next release.
Dag-Erling Smørgrav
2013-03-03 23:28:04 +0000
f8a727ec0cAlways use openpam_straddch(3) to bootstrap the string, even if we have nothing to add to it. This simplifies the code and fixes a bug introduced in r553 where the first character in the string would always be set to '\0', instead of only when bootstrapping.
Dag-Erling Smørgrav
2013-03-03 23:27:35 +0000
75420a1e07Simplify by using openpam_straddch(3) to bootstrap the string.
Dag-Erling Smørgrav
2013-03-03 23:23:58 +0000
54d9167ceaIf ch == '\0', do not grow the string or advance the length counter, but do allocate a string if there is none to begin with. This makes it possible to use openpam_straddch(3) to preallocate the string (if necessary) instead of manually calling malloc(3) or calloc(3) and initializing size and len.
Dag-Erling Smørgrav
2013-03-03 23:23:10 +0000
b21442245aAdd test cases that mix quoted and unquoted text.
Dag-Erling Smørgrav
2013-03-03 22:57:21 +0000
4978bcf862Limit exported symbols to the PAM service functions.
Dag-Erling Smørgrav
2013-02-25 07:23:00 +0000
515667a9c5Add a default service name.
Dag-Erling Smørgrav
2013-02-25 07:13:35 +0000
f70250359eUse AM_CPPFLAGS instead of INCLUDES.
Dag-Erling Smørgrav
2013-02-24 18:51:10 +0000
e15ecfaa9cI seem to have inadvertantly used a non-standard variation of the BSD license on code I wrote after the DARPA / NAI contract ended. Change all occurrences to the standard license.
Dag-Erling Smørgrav
2013-02-24 14:01:42 +0000
35310aef5bShared temp file handling code (should have been committed with r617)
Dag-Erling Smørgrav
2012-09-25 18:58:07 +0000
9914cc8c45Factor out temp file handling
Dag-Erling Smørgrav
2012-09-18 11:35:13 +0000
2b555bb3d3Move our strlcat() and strlcpy() implementations into .c files. Add asprintf() and vasprintf() for systems that don't have it.
Dag-Erling Smørgrav
2012-08-07 15:18:16 +0000
709f28793cForgot to include openpam_cred.h in distribution.
Dag-Erling Smørgrav
2012-08-07 14:33:39 +0000
c0a7737a9bForgot to set svn:keywords.
Dag-Erling Smørgrav
2012-08-07 14:31:06 +0000
0869153c0bDefine struct pam_saved_cred in a separate header.
Dag-Erling Smørgrav
2012-08-06 11:44:21 +0000
d4aebe2ae9Fix a boneheaded error in the option copying loop that remained undetected through months of testing only to show up within hours of release.
Dag-Erling Smørgrav
2012-05-26 22:57:11 +0000
fcce2d8609Before committing r594, I shortened the names of certain features, but I apparently didn't do it consistently. For some reason, it built fine on one of my dev machines, but nowhere else.
Dag-Erling Smørgrav
2012-04-20 11:04:05 +0000
383544e1e9Remove outdated checklist. There is a new one on the wiki:
Dag-Erling Smørgrav
2012-04-15 17:49:09 +0000
be8d8c6c7bDon't forget to distribute openpam_features.h.
Dag-Erling Smørgrav
2012-04-15 17:31:15 +0000
56adeeabf3umm, it's usually a good idea to test before committing.
Dag-Erling Smørgrav
2012-04-14 20:37:45 +0000
7ca68ffaecSeparate the code that opens and validates the policy file from the code that searches for it. If the service name contains a path separator character, treat it is a relative or absolute path to the policy file.
Dag-Erling Smørgrav
2012-04-14 16:11:39 +0000
aa1f7162f1Use Sy instead of Em for deprecated / experimental notices.
Dag-Erling Smørgrav
2012-04-14 15:06:41 +0000
cf9114a400Add support for marking a function as deprecated or experimental.
Dag-Erling Smørgrav
2012-04-14 14:52:40 +0000
d4b138c0e3Add command-line options to disable module and policy checks.
Dag-Erling Smørgrav
2012-04-14 14:28:35 +0000
312b5753a5Add an experimental mechanism for enabling / disabling optional features. Use it to control policy and module file checks. The default settings correspond to the current behavior: disallow path separators in policy names, but allow them in module names; verify ownership and permissions for both policy files and modules.
Dag-Erling Smørgrav
2012-04-14 14:18:41 +0000
8c5bc6cb91An escaped newline within a single-quoted string is a literal newline, but within a double-quoted string, it is a line continuation.
Dag-Erling Smørgrav
2012-04-07 22:49:12 +0000
53544bd288Add test cases for escaped whitespace within single- and double-quoted strings. This reveals a bug relating to line continuations within double-quoted strings.
Dag-Erling Smørgrav
2012-04-07 22:47:16 +0000
4c0e839be3Add a gdb wrapper script that sets LD_LIBRARY_PATH and helps locate the actual binary.
Dag-Erling Smørgrav
2012-04-07 18:56:13 +0000
c02ad56e43Check the return value from asprintf().
Dag-Erling Smørgrav
2012-04-06 23:23:35 +0000
5cb6cd19f3I've decided that the code, not the test, is correct in this case; this is adequately documented in openpam_readlinev(3).
Dag-Erling Smørgrav
2012-04-06 01:08:37 +0000
364f3b0753Clean up the code a bit and start adding cases with actual words.
Dag-Erling Smørgrav
2012-04-06 01:07:55 +0000
1db36adb17As previously mentioned, move from 2-clause BSD to 3-clause BSD.
Dag-Erling Smørgrav
2012-04-06 00:45:59 +0000
cbfada51e9Oops, re-add $(top_srcdir)/lib to VPATH, but under a less confusing name.
Dag-Erling Smørgrav
2012-04-06 00:44:46 +0000
aa04edbebbUseful little script that updates the release name and version number wherever they occur and bumps the date in man page.
Dag-Erling Smørgrav
2012-04-05 15:46:19 +0000
37f6b5bcc9Authorship; OpenPAM is no longer developed specifically "for the FreeBSD project".
Dag-Erling Smørgrav
2012-04-05 15:43:48 +0000
487cc6afcbauthorship and mdoc nits
Dag-Erling Smørgrav
2012-04-05 15:42:39 +0000
3cba749dfeFix backslashes within single-quoted strings (no escape function) Fix line continuation (newline is stripped, not quoted) Further improve the documentation
Dag-Erling Smørgrav
2012-04-05 14:32:51 +0000
1a3013376f#include <stdio.h> when appropriate.
Dag-Erling Smørgrav
2012-04-05 14:30:41 +0000
03c07732a6Fix bugs in two escaped-quote tests. Add more complex line-continuation tests.
Dag-Erling Smørgrav
2012-04-05 14:25:45 +0000
8e1af43b32Split all doubled-up quote tests in two (one for single quotes, one for double quotes). Add several more. Also add a test of line continuations (backslash-newline). Several of these tests fail due to discrepancies between openpam_readword() and POSIX quoting rules.
Dag-Erling Smørgrav
2012-04-05 13:58:01 +0000
4ee06f968eDon't use \a as a test case for escaped letters, because people might expect it to generate a BEL character, and I might at some point decide to implement that. Instead, use \z, which has no special meaning in any C-like language I know of.
Dag-Erling Smørgrav
2012-04-05 12:20:18 +0000