Dag-Erling Smørgrav
d3b7a7843e
Replace with useful content.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@647 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 17:49:55 +00:00
Dag-Erling Smørgrav
a9a5497d3f
Reorganize:
...
- move libpam into lib/libpam
- move the OATH code into lib/liboath
- move oath.h into include/security
- update all pointers
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@646 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 17:49:06 +00:00
Dag-Erling Smørgrav
374a1769ca
Relevant RFCs.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@645 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 16:56:27 +00:00
Dag-Erling Smørgrav
bbcd45ace7
Add code to load a key and obtain and verify a response from the user.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@644 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 15:25:22 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@643 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 15:24:00 +00:00
Dag-Erling Smørgrav
2fe7fdd088
Move WITH_PAM_* up from the leaf Makefiles into the parent Makefile.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@642 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 10:27:29 +00:00
Dag-Erling Smørgrav
a263be7c26
Fix encoder bugs: increment *olen rather than olen, and use the correct
...
mask for base64 (which was copy-pasted from the base32 code)
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@641 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 09:53:33 +00:00
Dag-Erling Smørgrav
a9c6523c52
If setlogmask(3) is available, suppress logging during tests.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@640 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-04 10:38:45 +00:00
Dag-Erling Smørgrav
9187daa2ac
Split up AC_CHECK_FUNCS.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@639 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-04 10:37:36 +00:00
Dag-Erling Smørgrav
2ec4f668a9
Add prototypes for the functions in oath_key.c.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@638 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:34:50 +00:00
Dag-Erling Smørgrav
a1ee57dd24
Start preparing for the next release.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@637 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:28:04 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@636 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:27:35 +00:00
Dag-Erling Smørgrav
75420a1e07
Simplify by using openpam_straddch(3) to bootstrap the string.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@635 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:23:58 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@634 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:23:10 +00:00
Dag-Erling Smørgrav
b21442245a
Add test cases that mix quoted and unquoted text.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@633 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 22:57:21 +00:00
Dag-Erling Smørgrav
1a070e2544
Fix usage string
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@632 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 20:26:34 +00:00
Dag-Erling Smørgrav
08f35bc290
Style nit
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@631 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 19:41:24 +00:00
Dag-Erling Smørgrav
ff9ea1145d
PAM_SYSTEM_ERR is permissible here.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@630 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 20:13:56 +00:00
Dag-Erling Smørgrav
16a29af819
Fix svn:ignore property.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@629 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 12:51:25 +00:00
Dag-Erling Smørgrav
92d483a21a
Implement URI encoding.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@628 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 12:12:53 +00:00
Dag-Erling Smørgrav
16e805fc4c
After decoding a URI, check the result and set default values.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@627 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 12:11:45 +00:00
Dag-Erling Smørgrav
3d15ee7552
Implement otpauth URI parsing (untested)
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@626 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-27 16:19:56 +00:00
Dag-Erling Smørgrav
a37ffba3b8
Old patch: credit Ankita Pal, who uncovered a couple of issues while
...
porting OpenPAM to QNX.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@625 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 21:12:10 +00:00
Dag-Erling Smørgrav
772c94fdee
Tweak the warning included in documentation for experimental features.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@624 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 21:11:38 +00:00
Dag-Erling Smørgrav
2546d3cf58
WIP: OATH module
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@623 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 07:24:51 +00:00
Dag-Erling Smørgrav
4978bcf862
Limit exported symbols to the PAM service functions.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@622 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 07:23:00 +00:00
Dag-Erling Smørgrav
515667a9c5
Add a default service name.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@621 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 07:13:35 +00:00
Dag-Erling Smørgrav
f70250359e
Use AM_CPPFLAGS instead of INCLUDES.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@620 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-24 18:51:10 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@619 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-24 14:01:42 +00:00
Dag-Erling Smørgrav
35310aef5b
Shared temp file handling code (should have been committed with r617)
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@618 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-09-25 18:58:07 +00:00
Dag-Erling Smørgrav
9914cc8c45
Factor out temp file handling
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@617 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-09-18 11:35:13 +00:00
Dag-Erling Smørgrav
2b555bb3d3
Move our strlcat() and strlcpy() implementations into .c files.
...
Add asprintf() and vasprintf() for systems that don't have it.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@616 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-08-07 15:18:16 +00:00
Dag-Erling Smørgrav
709f28793c
Forgot to include openpam_cred.h in distribution.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@615 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-08-07 14:33:39 +00:00
Dag-Erling Smørgrav
c0a7737a9b
Forgot to set svn:keywords.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@614 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-08-07 14:31:06 +00:00
Dag-Erling Smørgrav
0869153c0b
Define struct pam_saved_cred in a separate header.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@613 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-08-06 11:44:21 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@611 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-05-26 22:57:11 +00:00
Dag-Erling Smørgrav
42f7e1bd47
Update for Micrampelis
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@609 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-05-26 13:57:45 +00:00
Dag-Erling Smørgrav
2a194a26ca
set props
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@608 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-05-17 16:00:13 +00:00
Dag-Erling Smørgrav
78ab63e094
More code that inexplicably builds on one dev box but not on others.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@607 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-20 11:09:37 +00:00
Dag-Erling Smørgrav
fe17647fb8
Name include guards consistently.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@606 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-20 11:06:38 +00:00
Dag-Erling Smørgrav
6d3ad38b26
Whitespace nit.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@605 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-20 11:05:10 +00:00
Dag-Erling Smørgrav
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.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@604 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-20 11:04:05 +00:00
Dag-Erling Smørgrav
383544e1e9
Remove outdated checklist. There is a new one on the wiki:
...
http://www.openpam.org/wiki/Releases/Checklist
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@603 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-15 17:49:09 +00:00
Dag-Erling Smørgrav
be8d8c6c7b
Don't forget to distribute openpam_features.h.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@602 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-15 17:31:15 +00:00
Dag-Erling Smørgrav
56adeeabf3
umm, it's usually a good idea to test before committing.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@601 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 20:37:45 +00:00
Dag-Erling Smørgrav
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.
This need to be documented either in pam.conf(5) or in pam_start(3) once
the feature mechanism is no longer experimental.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@600 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 16:11:39 +00:00
Dag-Erling Smørgrav
aa1f7162f1
Use Sy instead of Em for deprecated / experimental notices.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@599 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 15:06:41 +00:00
Dag-Erling Smørgrav
1c59e86945
nit
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@598 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 15:04:43 +00:00
Dag-Erling Smørgrav
1ca33ae86f
Add proper documentation.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@597 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 15:00:10 +00:00
Dag-Erling Smørgrav
cf9114a400
Add support for marking a function as deprecated or experimental.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@596 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2012-04-14 14:52:40 +00:00