Commit Graph

  • 567ecaa2af Clean 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
  • 2b8f7a6154 nit: 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
  • fe2e691204 Use dlfunc() if available; if not, fake it in terms of dlsym(). Dag-Erling Smørgrav 2013-03-11 15:08:52 +0000
  • 785bc19867 Move 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
  • 429089e868 Add missing #include Dag-Erling Smørgrav 2013-03-06 22:59:15 +0000
  • 26d543d484 __unused is a FreeBSDism, use OPENPAM_UNUSED(). Dag-Erling Smørgrav 2013-03-06 22:59:05 +0000
  • efe65a2cab Add a macro for marking a variable or function argument as unused. Dag-Erling Smørgrav 2013-03-06 22:58:45 +0000
  • 7bcd5bb700 Split up the liboath header files. Dag-Erling Smørgrav 2013-03-06 14:10:09 +0000
  • 93a9982d45 Link with -lcrypto Dag-Erling Smørgrav 2013-03-05 19:03:59 +0000
  • 0ba869e872 Test cases for base 32 and 64 encoders Dag-Erling Smørgrav 2013-03-05 18:54:22 +0000
  • a810f26399 OpenSSL_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
  • 7ab83ce826 Support tests that require arguments Dag-Erling Smørgrav 2013-03-05 18:11:59 +0000
  • e6ad0c668c Update TODO list Dag-Erling Smørgrav 2013-03-05 17:58:43 +0000
  • 0da2f07cfb PAM_LOG_DEBUG -> PAM_LOG_LIBDEBUG Dag-Erling Smørgrav 2013-03-05 17:58:33 +0000
  • f6205baa20 prop sweep Dag-Erling Smørgrav 2013-03-05 17:54:27 +0000
  • d3b7a7843e Replace with useful content. Dag-Erling Smørgrav 2013-03-05 17:49:55 +0000
  • a9a5497d3f Reorganize: - move libpam into lib/libpam - move the OATH code into lib/liboath - move oath.h into include/security - update all pointers Dag-Erling Smørgrav 2013-03-05 17:49:06 +0000
  • 374a1769ca Relevant RFCs. Dag-Erling Smørgrav 2013-03-05 16:56:27 +0000
  • bbcd45ace7 Add 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
  • 2fe7fdd088 Move WITH_PAM_* up from the leaf Makefiles into the parent Makefile. Dag-Erling Smørgrav 2013-03-05 10:27:29 +0000
  • a263be7c26 Fix 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
  • a9c6523c52 If setlogmask(3) is available, suppress logging during tests. Dag-Erling Smørgrav 2013-03-04 10:38:45 +0000
  • 9187daa2ac Split up AC_CHECK_FUNCS. Dag-Erling Smørgrav 2013-03-04 10:37:36 +0000
  • 2ec4f668a9 Add prototypes for the functions in oath_key.c. Dag-Erling Smørgrav 2013-03-03 23:34:50 +0000
  • a1ee57dd24 Start preparing for the next release. Dag-Erling Smørgrav 2013-03-03 23:28:04 +0000
  • f8a727ec0c Always 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
  • 75420a1e07 Simplify by using openpam_straddch(3) to bootstrap the string. Dag-Erling Smørgrav 2013-03-03 23:23:58 +0000
  • 54d9167cea If 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
  • b21442245a Add test cases that mix quoted and unquoted text. Dag-Erling Smørgrav 2013-03-03 22:57:21 +0000
  • 1a070e2544 Fix usage string Dag-Erling Smørgrav 2013-03-03 20:26:34 +0000
  • 08f35bc290 Style nit Dag-Erling Smørgrav 2013-03-03 19:41:24 +0000
  • ff9ea1145d PAM_SYSTEM_ERR is permissible here. Dag-Erling Smørgrav 2013-02-28 20:13:56 +0000
  • 16a29af819 Fix svn:ignore property. Dag-Erling Smørgrav 2013-02-28 12:51:25 +0000
  • 92d483a21a Implement URI encoding. Dag-Erling Smørgrav 2013-02-28 12:12:53 +0000
  • 16e805fc4c After decoding a URI, check the result and set default values. Dag-Erling Smørgrav 2013-02-28 12:11:45 +0000
  • 3d15ee7552 Implement otpauth URI parsing (untested) Dag-Erling Smørgrav 2013-02-27 16:19:56 +0000
  • a37ffba3b8 Old patch: credit Ankita Pal, who uncovered a couple of issues while porting OpenPAM to QNX. Dag-Erling Smørgrav 2013-02-25 21:12:10 +0000
  • 772c94fdee Tweak the warning included in documentation for experimental features. Dag-Erling Smørgrav 2013-02-25 21:11:38 +0000
  • 2546d3cf58 WIP: OATH module Dag-Erling Smørgrav 2013-02-25 07:24:51 +0000
  • 4978bcf862 Limit exported symbols to the PAM service functions. Dag-Erling Smørgrav 2013-02-25 07:23:00 +0000
  • 515667a9c5 Add a default service name. Dag-Erling Smørgrav 2013-02-25 07:13:35 +0000
  • f70250359e Use AM_CPPFLAGS instead of INCLUDES. Dag-Erling Smørgrav 2013-02-24 18:51:10 +0000
  • e15ecfaa9c I 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
  • 35310aef5b Shared temp file handling code (should have been committed with r617) Dag-Erling Smørgrav 2012-09-25 18:58:07 +0000
  • 9914cc8c45 Factor out temp file handling Dag-Erling Smørgrav 2012-09-18 11:35:13 +0000
  • 2b555bb3d3 Move 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
  • 709f28793c Forgot to include openpam_cred.h in distribution. Dag-Erling Smørgrav 2012-08-07 14:33:39 +0000
  • c0a7737a9b Forgot to set svn:keywords. Dag-Erling Smørgrav 2012-08-07 14:31:06 +0000
  • 0869153c0b Define struct pam_saved_cred in a separate header. Dag-Erling Smørgrav 2012-08-06 11:44:21 +0000
  • dbaf45a3a3 merge r611 from trunk: fix show-stopper memory management bug openpam-20120526 origin/tags/openpam-20120526 Dag-Erling Smørgrav 2012-05-26 23:02:55 +0000
  • d4aebe2ae9 Fix 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
  • e9a9615f4d Tag OpenPAM Micrampelis Dag-Erling Smørgrav 2012-05-26 14:03:45 +0000
  • 42f7e1bd47 Update for Micrampelis Dag-Erling Smørgrav 2012-05-26 13:57:45 +0000
  • 2a194a26ca set props Dag-Erling Smørgrav 2012-05-17 16:00:13 +0000
  • 78ab63e094 More code that inexplicably builds on one dev box but not on others. Dag-Erling Smørgrav 2012-04-20 11:09:37 +0000
  • fe17647fb8 Name include guards consistently. Dag-Erling Smørgrav 2012-04-20 11:06:38 +0000
  • 6d3ad38b26 Whitespace nit. Dag-Erling Smørgrav 2012-04-20 11:05:10 +0000
  • fcce2d8609 Before 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
  • 383544e1e9 Remove outdated checklist. There is a new one on the wiki: Dag-Erling Smørgrav 2012-04-15 17:49:09 +0000
  • be8d8c6c7b Don't forget to distribute openpam_features.h. Dag-Erling Smørgrav 2012-04-15 17:31:15 +0000
  • 56adeeabf3 umm, it's usually a good idea to test before committing. Dag-Erling Smørgrav 2012-04-14 20:37:45 +0000
  • 7ca68ffaec Separate 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
  • aa1f7162f1 Use Sy instead of Em for deprecated / experimental notices. Dag-Erling Smørgrav 2012-04-14 15:06:41 +0000
  • 1c59e86945 nit Dag-Erling Smørgrav 2012-04-14 15:04:43 +0000
  • 1ca33ae86f Add proper documentation. Dag-Erling Smørgrav 2012-04-14 15:00:10 +0000
  • cf9114a400 Add support for marking a function as deprecated or experimental. Dag-Erling Smørgrav 2012-04-14 14:52:40 +0000
  • d4b138c0e3 Add command-line options to disable module and policy checks. Dag-Erling Smørgrav 2012-04-14 14:28:35 +0000
  • 312b5753a5 Add 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
  • b28d2d21ed Reorder: feature, enhance, bugfix Dag-Erling Smørgrav 2012-04-08 13:21:06 +0000
  • c23f34271d TODO list Dag-Erling Smørgrav 2012-04-08 13:19:51 +0000
  • 9b129a8850 ignore pamgdb Dag-Erling Smørgrav 2012-04-08 13:18:37 +0000
  • 2eb15b15cc Start preparing for the next release. Dag-Erling Smørgrav 2012-04-08 12:57:57 +0000
  • 1f79315d9e Generate prettier wikitext. Dag-Erling Smørgrav 2012-04-08 12:56:55 +0000
  • 4c8082f73d Markup nits Dag-Erling Smørgrav 2012-04-08 11:52:25 +0000
  • f0d658d97d Jason tipped me off about a memory leak in the previous iteration of openpam_parse_chain(). Dag-Erling Smørgrav 2012-04-08 11:12:10 +0000
  • d9ae0b5836 Consistently spell email addresses in lowercase. Dag-Erling Smørgrav 2012-04-08 11:11:28 +0000
  • 8c5bc6cb91 An 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
  • 53544bd288 Add 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
  • 4c0e839be3 Add 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
  • c02ad56e43 Check the return value from asprintf(). Dag-Erling Smørgrav 2012-04-06 23:23:35 +0000
  • 5cb6cd19f3 I'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
  • 364f3b0753 Clean up the code a bit and start adding cases with actual words. Dag-Erling Smørgrav 2012-04-06 01:07:55 +0000
  • 3fdf34619c doc nit Dag-Erling Smørgrav 2012-04-06 01:06:17 +0000
  • 1db36adb17 As previously mentioned, move from 2-clause BSD to 3-clause BSD. Dag-Erling Smørgrav 2012-04-06 00:45:59 +0000
  • cbfada51e9 Oops, re-add $(top_srcdir)/lib to VPATH, but under a less confusing name. Dag-Erling Smørgrav 2012-04-06 00:44:46 +0000
  • aa04edbebb Useful 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
  • 37f6b5bcc9 Authorship; OpenPAM is no longer developed specifically "for the FreeBSD project". Dag-Erling Smørgrav 2012-04-05 15:43:48 +0000
  • 487cc6afcb authorship and mdoc nits Dag-Erling Smørgrav 2012-04-05 15:42:39 +0000
  • 8435fe3eca authorship Dag-Erling Smørgrav 2012-04-05 15:42:14 +0000
  • 519086d0cb Include t.h in distribution. Dag-Erling Smørgrav 2012-04-05 15:41:44 +0000
  • 3a0280a4cb Fix srcdir != pwd case (exercised by make distcheck) Dag-Erling Smørgrav 2012-04-05 15:38:04 +0000
  • 03ef7cd64d include openpam_ctype.h in distribution Dag-Erling Smørgrav 2012-04-05 15:32:53 +0000
  • eea3231ee1 A single space before the section title is OK. Dag-Erling Smørgrav 2012-04-05 14:38:07 +0000
  • 89e4f8a9e7 Fix authorship Dag-Erling Smørgrav 2012-04-05 14:35:53 +0000
  • 3cba749dfe Fix 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
  • 03c07732a6 Fix bugs in two escaped-quote tests. Add more complex line-continuation tests. Dag-Erling Smørgrav 2012-04-05 14:25:45 +0000
  • 8e1af43b32 Split 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
  • 4ee06f968e Don'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