Klas Lindfors
fc9a4255f0
refactor the debug mode
...
add a debug_file option for where to write debug info (default to stdout)
stop compiling with DEBUG_PAM and PAM_DEBUG
make debugging behave the same way on linux-pam and openpam
2016-06-16 09:02:49 +02:00
Klas Lindfors
9eb630a383
use umask instead of chmod to set file permissions
2016-06-03 09:08:22 +02:00
Klas Lindfors
0a1051f6df
check that file doesn't exist before we try to write it
2016-03-31 10:13:00 +02:00
Klas Lindfors
7639f4684a
set file permissions when creating a new challenge file
2016-03-31 10:12:03 +02:00
Klas Lindfors
70f27b98a2
include pwd.h in util.h
2015-09-09 08:24:57 +02:00
Klas Lindfors
237ed18b9f
use pam_modutil_getpwnam() if it's available
...
also refactor to pass in a passwd struct to the util functions
2015-09-08 09:15:07 +02:00
Klas Lindfors
ec730d7cb4
add -V for version to ykpamcfg and exit earlier
...
also error on any part of iterations being non-numeric
2015-02-12 13:38:57 +01:00
Klas Lindfors
e2f9a7b95c
don't write to a constant pointer
...
instead allocate action on the stack and copy the data there
2014-10-31 09:21:06 +01:00
Simon Josefsson
43cd3b4621
Update copyright years.
2014-04-30 13:16:09 +02:00
Klas Lindfors
eb1ba8a52a
update copyright years
2013-09-19 08:35:15 +02:00
Klas Lindfors
ba4e56667b
add -i switch for setting iterations with ykpamcfg
2013-09-18 14:10:35 +02:00
Klas Lindfors
307c88d76d
fix warnings
2013-09-18 14:10:35 +02:00
Klas Lindfors
eb78d4882b
refactor to use chalresp function from ykpers
...
so challenge_response() now calls yk_challenge_response() to
do the yubikey internal stuff.
2013-09-18 14:10:35 +02:00
Tommaso Galassi De Orchi
1eff1ad71b
New feature, create directory in the user home.
2012-11-14 14:14:06 +01:00
Tommaso Galassi De Orchi
ad27af3518
Added option to specify a path for ykpamcfg.
2012-11-14 10:43:47 +01:00
Klas Lindfors
6db8c640ef
add check that two challenges get different responses
2012-06-08 13:19:24 +02:00
Fredrik Thulin
fb6281fa3f
Fix clang indicated printf format warnings.
2012-02-08 15:53:18 +01:00
Simon Josefsson
3828953374
Bump version. Use silent rules. Bump copyright years.
2012-01-23 20:25:06 +01:00
Fredrik Thulin
4ce59833ba
Further pointer signedness fixes.
2011-12-06 13:46:30 +01:00
Fredrik Thulin
fa8a9ff074
Fix pointer signedness warnings.
2011-12-06 11:56:52 +01:00
Fredrik Thulin
8930cca53e
parse_args: getopt() return value is int.
2011-11-22 11:03:51 +01:00
Fredrik Thulin
1d62f8d48b
whitespace
2011-04-11 14:49:02 +02:00
Fredrik Thulin
839b33a0a1
Add ykpamcfg - C/R setup command line utility.
2011-03-18 22:57:46 +01:00