Commit graph

66 commits

Author SHA1 Message Date
Dag-Erling Smørgrav
4c55b07779 Roll OpenPAM Figwort.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@312 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-06-16 15:46:58 +00:00
Dag-Erling Smørgrav
0721e593ae Add $P4$ tags to files that didn't already have them.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@309 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-06-09 21:35:39 +00:00
Dag-Erling Smørgrav
9443f9f3f9 Prepare for tomorrow's release of OpenPAM Feterita.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@299 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-01-31 16:13:22 +00:00
Dag-Erling Smørgrav
9d0dd0c39b Add openpam_free_envlist(). I'm tired of freeing them by hand.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@289 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-01-28 14:47:41 +00:00
Dag-Erling Smørgrav
5dcc905a94 Prepare to release OpenPAM Eelgrass.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@278 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2004-02-10 11:00:53 +00:00
Dag-Erling Smørgrav
e38d7ba072 I originally thought the XSSO was wrong to declare pam_get_data()'s
final argument as void ** rather than const void **, but having seen
the strict aliasing warnings gcc generates at higher -O levels, it
makes a lot more sense.  Change the prototype and definition back to
what the XSSO specifies, and make the necessary changes to avoid
warnings in code that calls pam_get_data().


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@277 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-12-11 17:41:17 +00:00
Dag-Erling Smørgrav
187f68b10f Tell gcc that _openpam_log() behaves like printf().
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@276 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-12-11 17:37:14 +00:00
Dag-Erling Smørgrav
c8dc56b998 Revert the previous commit. It seemed like a good idea at the time,
but it breaks at least one module in -CURRENT.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@272 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-21 21:52:56 +00:00
Dag-Erling Smørgrav
27480e5170 FOPEN_MAX wasn't such a reliable <stdio.h> indicator after all, so
use _IOFBF instead.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@269 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 23:53:19 +00:00
Dag-Erling Smørgrav
bb8d609e45 Install headers in the right place.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@266 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 15:07:23 +00:00
Dag-Erling Smørgrav
51ec3dc33d Prepare to release OpenPAM Dogwood later today.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@265 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:34:43 +00:00
Dag-Erling Smørgrav
21f58dc32e Use read(2) on fileno(stdin) rather than fgets(3). This make timeout
handling considerably simpler, eliminating the need for setjmp(3) and
evil global variables.

Portions submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@264 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:17:47 +00:00
Dag-Erling Smørgrav
620f3bf045 Constify the msg field of struct pam_message, and realign.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@263 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:15:45 +00:00
Dag-Erling Smørgrav
a3c9744349 Have dist.sh automatically set the release date.
Touch all files in the distribution directory before rolling the
release to avoid false negative dependency checks later.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@255 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:52:07 +00:00
Dag-Erling Smørgrav
5de0bf6bae Autoconfuse.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@251 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:29:37 +00:00
Dag-Erling Smørgrav
049385996b Give up trying to keep track of what has changed and what hasn't;
just slap a 2003 copyright on everything.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@245 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:34:11 +00:00
Dag-Erling Smørgrav
202b021ebb The next release will be Digitalis.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@244 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:28:03 +00:00
Dag-Erling Smørgrav
6c68711fe1 Continue improving the new configuration parser, particularly error
reporting: error messages relating to policy files now include line
numbers, and the parser will warn about invalid facility names.

Also fix an off-by-one bug in the option handling code.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@241 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-26 15:31:28 +00:00
Dag-Erling Smørgrav
0fe6f41f7c Overhaul the configuration parser. This adds support for continuation
lines and policy inclusion.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@240 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 18:34:31 +00:00
Dag-Erling Smørgrav
a59c768d3e Update copyright dates for files that have changed this year. Also
change the copyright date on generated man pages from 2002 to 2001-2003
since work on this part of OpenPAM started in late 2001.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@221 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:54:04 +00:00
Dag-Erling Smørgrav
df6d850a38 Roll OpenPAM Dianthus.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@213 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-02 16:59:28 +00:00
Dag-Erling Smørgrav
309a306cfd Constify the return value from pam_getenv(3). This violates XSSO,
but I consider that a bug in the spec.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@211 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 23:10:49 +00:00
Dag-Erling Smørgrav
13e7ee3988 Some compilers (gcc at least) promote the integer literal 0x80000000
to long, while enums are required to fit in an int.  To avoid the
warning this causes, use (-0x7fffffff - 1) instead of 0x80000000.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@207 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 18:11:15 +00:00
Dag-Erling Smørgrav
0dcf0274b0 #include <stddef.h> is sufficient to define size_t, and is far more
portable (and less polluting) than #include <sys/types.h>.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@199 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-23 22:29:40 +00:00
Dag-Erling Smørgrav
26767ae03c #include <sys/types.h> (for size_t) against my better judgement.
Solaris does it too, so at least I'm not the odd one out.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@198 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-22 17:44:40 +00:00
Dag-Erling Smørgrav
9435ecd893 Add a counter to the error code enumeration.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@182 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 16:56:34 +00:00
Dag-Erling Smørgrav
a5d90305a3 Bite the bullet and move PAM_{,OLD}AUTHTOK_PROMPT to make room for
PAM_REPOSITORY, which is defined to 10 in Solaris 9.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@168 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:35:29 +00:00
Dag-Erling Smørgrav
a40e1b6ed2 OpenPAM Citronella.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@165 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:20:26 +00:00
Dag-Erling Smørgrav
913c1aaf47 Add the PAM_REPOSITORY item (from Solaris 9).
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@164 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:11:38 +00:00
Dag-Erling Smørgrav
a9b8bb1e92 Implement the "binding" control flag (from Solaris 9)
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@161 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 22:41:59 +00:00
Dag-Erling Smørgrav
5302ca92e9 Define struct pam_repository (from Solaris 9). Note that the PAM
headers now require size_t to be defined.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@159 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 22:39:52 +00:00
Dag-Erling Smørgrav
ed3d5a8522 DBA update and minor whitespace fixes.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@157 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-07 18:22:57 +00:00
Dag-Erling Smørgrav
fb3aece812 Roll OpenPAM Cinquefoil.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@150 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-05-24 14:49:23 +00:00
Dag-Erling Smørgrav
859840dd61 GCC 3 is upon us.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@147 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-05-24 14:27:09 +00:00
Dag-Erling Smørgrav
e8af376306 Silly me forgot to update the version macros when I rolled Cinnamon.
I need a "release procedures" document...


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@143 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-05-09 19:21:04 +00:00
Dag-Erling Smørgrav
ad8d33ef88 Add a null conversation function.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@129 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-17 06:46:51 +00:00
Dag-Erling Smørgrav
eabc266fb3 Fix braino in the gcc version of the openpam_log() macro.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@128 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-16 23:29:40 +00:00
Dag-Erling Smørgrav
22986240c0 Bump version & release.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@120 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:25:15 +00:00
Dag-Erling Smørgrav
4872da15d4 Add version macros.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@114 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 19:40:11 +00:00
Dag-Erling Smørgrav
71b9434c2f Fix typo in openpam_log macro.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@113 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-13 00:12:46 +00:00
Dag-Erling Smørgrav
3f41e83845 Adopt the same preprocessor tricks that Linux-PAM uses for modules.
This reduces the amount of changes needed to adopt modules written
for Linux-PAM.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@111 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-12 20:16:08 +00:00
Dag-Erling Smørgrav
56aafe38c0 Add openpam_{borrow,restore}_cred() (for temporarily switching to
user credentials) and openpam_free_data() (generic cleanup function
for pam_set_data() consumers)

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@106 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 13:42:13 +00:00
Dag-Erling Smørgrav
b2b11d5483 Fix bugs in portability code; libpam now builds on NetBSD 1.5.2.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@104 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 19:02:06 +00:00
Dag-Erling Smørgrav
1eafe40ac3 Change pam_get_authtok()'s prototype so the caller can specify
what token it wants.  Also introduce PAM_OLDAUTHTOK_PROMPT.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@100 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 17:05:21 +00:00
Dag-Erling Smørgrav
8c639c01ef s/Technologies/Technology/ in copyright, and regenerate docs.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@93 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 18:12:45 +00:00
Dag-Erling Smørgrav
f2bc37d0d6 s/PAM_REINITIALISE_CRED/PAM_REINITIALIZE_CRED/
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@92 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 13:09:46 +00:00
Dag-Erling Smørgrav
b61ca53417 Move most of the dynamic loader code into a separate file, and add
support for module versioning.  OpenPAM will prefer a PAM module with
the same version number as the library itself to one with no version
number at all.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@87 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-05 14:20:26 +00:00
Dag-Erling Smørgrav
6f75ed6572 $Id$ -> $P4$ + regenerate man pages.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@86 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-26 04:05:19 +00:00
Dag-Erling Smørgrav
5c3fadae16 Add openpam_get_option() and openpam_set_option().
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@74 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 21:33:49 +00:00
Dag-Erling Smørgrav
8c45582bf1 Move the linker set stuff into a separate file, and rename the
linker set for cosmetic reasons.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@70 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 15:33:11 +00:00