Commit Graph

  • 4ae013334b Release OpenPAM Ximenia. release/ximenia Dag-Erling Smørgrav 2023-06-27 18:42:54 +0200
  • d61017e615 Prepare to release Ximenia tomorrow. main Dag-Erling Smørgrav 2023-06-26 20:49:39 +0200
  • 41eb8b9f02 In openpam_subst(3), avoid incrementing past the end of the template. Dag-Erling Smørgrav 2023-06-26 20:48:13 +0200
  • 7da86c0c62 Decrement optc when removing an option. Dag-Erling Smørgrav 2023-06-26 19:51:55 +0200
  • 4b2e3c92df Remove unused variable. Dag-Erling Smørgrav 2023-06-26 19:51:48 +0200
  • cc0d61260e Remove unnecessary log messages. Dag-Erling Smørgrav 2021-10-21 15:49:26 +0200
  • f1871a7d9f Add unit tests for openpam_straddch(3). Dag-Erling Smørgrav 2021-10-21 15:47:06 +0200
  • eed614622f Replace the coverage script with a Makefile target. Dag-Erling Smørgrav 2021-10-21 12:38:03 +0200
  • 29e80880cc Whitespace cleanup. Dag-Erling Smørgrav 2021-10-21 12:35:20 +0200
  • 64edbc294d Switch wiki markup from Trac to Gitea. Dag-Erling Smørgrav 2021-10-21 11:45:06 +0200
  • 1d9c829c40 Switch to clang code coverage. Dag-Erling Smørgrav 2021-10-20 18:43:00 +0200
  • ef5e67748c Drop mkpkgng in favor of a generated port Makefile. Dag-Erling Smørgrav 2021-10-20 15:54:08 +0200
  • 05bd3febc0 Gitify. Dag-Erling Smørgrav 2021-10-20 15:39:48 +0200
  • a967883b9c In openpam_ttyconv(3), wait to print the prompt until after we're ready to accept input. Otherwise, there is a small but non-zero chance that input provided after the prompt appears is discarded when we flush the tty buffer. svn origin/trunk Dag-Erling Smørgrav 2020-11-19 05:41:15 +0000
  • 6c01e912e5 Tag OpenPAM Tabebuia openpam-20190224 origin/tags/openpam-20190224 Dag-Erling Smørgrav 2019-02-24 20:18:17 +0000
  • e0e3406a78 Enable FALLBACK_TO_OTHER since we don't use (or need) a policy. Dag-Erling Smørgrav 2019-02-22 12:38:53 +0000
  • 6bf8cb1753 Prepare to release Tabebuia on Sunday. Dag-Erling Smørgrav 2019-02-22 09:52:46 +0000
  • bb68996306 Bump copyright years. Dag-Erling Smørgrav 2019-02-22 09:49:12 +0000
  • 9bdf428c5a Fix an off-by-one bug in pam_getenv() which was inadvertantly introduced when pam_getenv() was (needlessly) rewritten as part of r913. Rewrite pam_getenv() again (but correctly, this time) to reduce the number of times we iterate over the same string. Add a few unit tests for pam_{get,put,set}env(), including one which would have caught the bug. Dag-Erling Smørgrav 2019-02-20 13:23:51 +0000
  • 1dce53245b r940 relied on Cryb's own autoconf macros, which obviously aren't available unless Cryb itself is available, which is precisely what we're trying to figure out. Use plain pkg-config instead, as intended. Dag-Erling Smørgrav 2019-02-20 13:19:01 +0000
  • 251dac8e4a We haven't needed libcrypto since the OATH code was removed. Dag-Erling Smørgrav 2019-02-20 13:15:54 +0000
  • a501f2af85 Use pkg-config / pkgconf to locate libcryb-test. Dag-Erling Smørgrav 2019-02-20 12:21:40 +0000
  • 3561c915b9 Tag OpenPAM Resedacea openpam-20170430 origin/tags/openpam-20170430 Dag-Erling Smørgrav 2017-04-30 21:36:50 +0000
  • 9cd25f7e7d Switch from $Id$ to $OpenPAM$. Dag-Erling Smørgrav 2017-04-30 21:34:42 +0000
  • d061313188 Markip nit Dag-Erling Smørgrav 2017-04-30 21:25:34 +0000
  • eefae6d5ef Rename release to Residacea. Dag-Erling Smørgrav 2017-04-30 21:14:17 +0000
  • 919a1250d4 Bump copyright year. Dag-Erling Smørgrav 2017-04-26 21:04:10 +0000
  • ddb34ad671 Prepare to release OpenPAM Reboulia on Sunday. Dag-Erling Smørgrav 2017-04-26 20:53:18 +0000
  • 4876ee459d Add PAM_BAD_FEATURE and PAM_BAD_CONSTANT. Dag-Erling Smørgrav 2017-04-26 20:43:55 +0000
  • 105d392c57 Add two more error codes for situations where we used PAM_SYMBOL_ERR. Dag-Erling Smørgrav 2017-04-26 20:41:59 +0000
  • 29c7f93598 Introduce an array of error strings and use it wherever applicable. Dag-Erling Smørgrav 2017-04-26 19:23:50 +0000
  • 0f7f351a10 Remove the NONNULL annotation since we reintroduced the NULL check. Dag-Erling Smørgrav 2017-04-26 19:22:57 +0000
  • c87aee7c52 Add the new error codes and rewrite the error code handling to support negated entries, e.g. in cases a() calls b() and b() can return code X in certain situations, but a() ensures that this never happens. Dag-Erling Smørgrav 2017-04-26 19:21:54 +0000
  • 07daaf4bb2 r927 should have said: introduce new error codes for situations where we have long used the wrong ones because neither XSSO not Solaris defined codes that fit the situation. Also, the definition was missing. Dag-Erling Smørgrav 2017-04-26 19:19:52 +0000
  • 3ebfd11150 Use the correct error code in some of the places where we have long used the wrong one. Dag-Erling Smørgrav 2017-04-26 19:15:30 +0000
  • e7f32a97b0 Adapt to newer versions of the Cryb test framework. Dag-Erling Smørgrav 2017-03-23 13:42:56 +0000
  • 812256e9d1 Add missing #include. Dag-Erling Smørgrav 2017-02-23 08:03:22 +0000
  • 48c20f14c5 Tag OpenPAM Radula openpam-20170219 origin/tags/openpam-20170219 Dag-Erling Smørgrav 2017-02-19 20:52:28 +0000
  • 25bcbd2652 Prepare to release OpenPAM Radula. Dag-Erling Smørgrav 2017-02-19 19:31:16 +0000
  • a823b423ca Switch to using the cryb.to project's test framework. Dag-Erling Smørgrav 2017-02-19 19:28:30 +0000
  • 890bea99e0 Update. Dag-Erling Smørgrav 2017-02-19 18:10:30 +0000
  • 05afeb7a29 Document r918. Dag-Erling Smørgrav 2017-02-19 18:06:43 +0000
  • f5a12fb24e Update the release notes to reflect that code flows from OpenPAM to FreeBSD rather than the reverse. Dag-Erling Smørgrav 2017-02-19 18:06:08 +0000
  • d9e44d146f Fix a bug that prevented the service name from being freed, thus leaking a small amount of memory for every PAM session. Dag-Erling Smørgrav 2017-02-19 17:46:22 +0000
  • 2f340d61b5 Add a pair of scripts to facilitate running Bullseye Coverage and Coverity Scan on the codebase. Dag-Erling Smørgrav 2017-02-18 14:45:27 +0000
  • 82935b7d7a Downgrade the "unexpected EOF" message from ERROR to DEBUG. Dag-Erling Smørgrav 2017-02-07 12:25:58 +0000
  • 1e09705bd7 Fix FREEV() when v is NULL. Dag-Erling Smørgrav 2017-02-07 12:03:19 +0000
  • c5a320988e In pam_*env(3), set errno as the corresponding POSIX functions would. Dag-Erling Smørgrav 2017-01-21 15:15:29 +0000
  • e936857588 Newer versions of clang take __nonnull__ annotations into account not only when compiling code that calls the function, but also when compiling the function itself. This means that NULL checks in the function trigger condition-always-false warnings. We have a choice between disabling these warnings, removing the __nonnull__ annotations, or removing the NULL checks. We prefer to keep the annotations and warnings and remove the checks. In all cases, passing NULL to the function in question will result in a segmentation fault, which is often easier to debug than an error return, especially when most of these checks were for the PAM handle, which can only be NULL if the caller ignored an error return from pam_start(). Dag-Erling Smørgrav 2017-01-21 15:11:12 +0000
  • a18c87672e Postpone Radula until next Saturday. Dag-Erling Smørgrav 2017-01-21 14:48:30 +0000
  • 1b3d8add72 merge r910: correct markup for email addresses origin/oath Dag-Erling Smørgrav 2017-01-21 12:37:15 +0000
  • 23cdf95099 Correct markup for email addresses. Dag-Erling Smørgrav 2017-01-21 12:22:08 +0000
  • 3112c53799 Remove experimental code that was accidentally committed in r908 Dag-Erling Smørgrav 2017-01-20 08:13:20 +0000
  • adb7175c42 Prepare for releasing Radula on Saturday. Dag-Erling Smørgrav 2017-01-18 10:11:57 +0000
  • 38d108d285 Move OATH development to a branch. OATH will soon disappear entirely from this repository as Cryb takes over. Dag-Erling Smørgrav 2017-01-18 09:39:01 +0000
  • c75883564d Move OATH development to a branch. OATH will soon disappear entirely from this repository as Cryb takes over. Dag-Erling Smørgrav 2017-01-18 09:39:01 +0000
  • 646005f031 Remove stray references to OATH. origin/nooath nooath Dag-Erling Smørgrav 2017-01-18 09:34:34 +0000
  • 4be13a4e6c merge r768: fix condition for using application-provided prompt Dag-Erling Smørgrav 2017-01-17 15:19:56 +0000
  • c420e0ac6a merge r768: make stdout line-buffered in unit tests Dag-Erling Smørgrav 2017-01-17 15:17:55 +0000
  • 6ecf20bc57 r822 claimed to merge r819, r820 and r821 but only merged the first one. Dag-Erling Smørgrav 2017-01-17 15:16:40 +0000
  • 3699596d18 Correctly compare the return value from pam_get_item() to PAM_SUCCESS instead of assuming (incorrectly) that it returns non-zero on success. Bump dates as needed. Dag-Erling Smørgrav 2017-01-17 14:57:09 +0000
  • aec4e8ad16 merge (r873,r884): add pam_return(8) module used by unit tests Dag-Erling Smørgrav 2017-01-17 14:43:27 +0000
  • 335463a9e2 merge r754: tweak option descriptions Dag-Erling Smørgrav 2017-01-17 14:40:14 +0000
  • d426d89488 merge r744: run libtoolize before aclocal Dag-Erling Smørgrav 2017-01-17 14:38:22 +0000
  • 4860733e29 merge r872: add missing third clause Dag-Erling Smørgrav 2017-01-17 14:37:07 +0000
  • 9ce6a3fc2c merge r877: plug hypothetical memory leak Dag-Erling Smørgrav 2017-01-17 14:35:09 +0000
  • 204469e6c6 merge r745: (belatedly) add defensive length check to strlcpy() Dag-Erling Smørgrav 2017-01-17 14:34:00 +0000
  • c5252af6a8 merge r890: bump copyright dates for files modified in 2014 or later Dag-Erling Smørgrav 2017-01-17 14:31:56 +0000
  • debbcc1b75 merge r863,r874,r891: partial unit tests for openpam_dispatch() merge r864-867,r871,r880,r883: various improvements to tests and test suite Dag-Erling Smørgrav 2017-01-17 14:29:41 +0000
  • abee687e7a merge r862: add control flag for fallback to "other" policy Dag-Erling Smørgrav 2017-01-17 14:19:04 +0000
  • e86565c553 Completely revert mismerged changes to the documentation Makefile. Dag-Erling Smørgrav 2017-01-17 14:09:49 +0000
  • da26321ba8 Spell the GCC pragmas correctly. Dag-Erling Smørgrav 2016-09-19 10:04:25 +0000
  • 26fbccde77 Bump dates if required on files modified in 2014 or later. Dag-Erling Smørgrav 2016-01-11 16:22:09 +0000
  • b6605f9267 Add University of Oslo copyright and bump dates. Dag-Erling Smørgrav 2016-01-11 16:21:28 +0000
  • aa6768d765 Fix props Dag-Erling Smørgrav 2016-01-11 16:19:57 +0000
  • c371da364c Note that the secret should also be percent-encoded. Dag-Erling Smørgrav 2016-01-11 14:09:30 +0000
  • 4a77e993a9 Fix parsing of percent-encoded URIs. Dag-Erling Smørgrav 2016-01-11 14:07:54 +0000
  • d040ae3d29 Add a man page for pam_oath(8) which I've had lying around for years. Dag-Erling Smørgrav 2016-01-11 13:45:17 +0000
  • b1895baa2d Don't forget to generate the Makefile for pam_return(8). Dag-Erling Smørgrav 2016-01-11 13:44:33 +0000
  • ddfa63ca38 Disable coverage analysis of tests and test infrastructure. Dag-Erling Smørgrav 2016-01-09 18:42:28 +0000
  • 41a50e0c57 Set an upper limit to the number of codes generated by the calc command. Dag-Erling Smørgrav 2016-01-09 18:41:46 +0000
  • 9ff1a454ce Fix off-by-one bug: we forgot to account for the terminating NUL when checking the length of the label. Dag-Erling Smørgrav 2016-01-09 18:29:32 +0000
  • 310b5ee125 Partially revert r871 until a better solution can be found, as it only works if the file already exists. Dag-Erling Smørgrav 2016-01-09 17:52:39 +0000
  • a38c5db91b Fix rather embarassing #if nesting error in previous commit. Dag-Erling Smørgrav 2016-01-09 17:43:56 +0000
  • f82c90afb6 Coverity Scan doesn't like the no-op default case, so hide it when we're not instrumenting for coverage analysis. Dag-Erling Smørgrav 2016-01-09 17:34:32 +0000
  • 4e92aa7e24 Plug potential memory leak reported by Coverity Scan. I'm not sure it can actually ever occur, but the extra free() is harmless, provided we make sure not to free() something we're still using. Dag-Erling Smørgrav 2016-01-09 17:26:18 +0000
  • 5b83650c3d Don't forget to free the line we read from the key file. Dag-Erling Smørgrav 2016-01-09 17:23:36 +0000
  • e89fab019e Fix NULL check in pam_oath_save_key() error-handling code, which checked the wrong variable. Dag-Erling Smørgrav 2016-01-09 17:22:34 +0000
  • d4aad88c97 Add a table-driven test which leverages the pam_return module to test various code paths in openpam_dispatch(). Dag-Erling Smørgrav 2015-12-01 19:40:01 +0000
  • 17c3fff539 For testing purposes, add a pam_return module which can be configured to return any value, either by name (e.g. PAM_AUTH_ERR) or by number, even if that number is out of range. Dag-Erling Smørgrav 2015-12-01 19:38:01 +0000
  • f78c2be225 Add missing third clause. Dag-Erling Smørgrav 2015-12-01 19:25:07 +0000
  • b3cd4386fa In t_fopen(), resolve the full path to the file before opening it. In t_fprintf(), immediately flush the file after writing to it. Dag-Erling Smørgrav 2015-12-01 19:21:50 +0000
  • d30df17f67 Increase the TOTP window to ±2 timesteps. Dag-Erling Smørgrav 2015-10-23 10:22:35 +0000
  • b149f4beed Fix uninitialized variable warning. Dag-Erling Smørgrav 2015-10-23 10:19:21 +0000
  • 4a9cae719e Let the optional argument to the calc command be the total number of codes to print, not the number of codes in addition to the current code. Add a -n option which causes the calc command to print the counter or timestamp in addition to the code. Document the fact that the calc command does not work correctly for TOTP keys with count > 1. Dag-Erling Smørgrav 2015-10-23 09:41:16 +0000
  • 75781c2e7c Don't forget to distribute t_pam_conv.h Dag-Erling Smørgrav 2015-10-23 09:10:04 +0000
  • 37b1f12e58 Deconstify across the board to dodge -Wcast-qual until we convert to the far superior cryb.to test framework. Dag-Erling Smørgrav 2015-07-31 00:03:02 +0000
  • 4ee61ea341 intptr_t requires <stdint.h> Dag-Erling Smørgrav 2015-07-31 00:02:09 +0000
  • a1e8de164e ignore generated file Dag-Erling Smørgrav 2015-07-31 00:01:51 +0000
  • 38c6ca93b2 Start writing tests for openpam_dispatch(). The first is a regression test for the bug fixed in r802. Dag-Erling Smørgrav 2015-07-30 23:44:31 +0000