History log of /openbsd-current/usr.sbin/tokeninit/tokeninit.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.13 03-May-2017 mestre

Use the safe idiom of cleaning sensitive data from memory with explicit_bzero,
instead of relying on other methods, after readpassphrase. Some programs on
this diff won't benefit that much since it happens near the terminal path, but
someone might copy the unsafe idiom to another program and place it where it
may leak sensitive data.

Discussed aeons ago with tb@, OK deraadt@ and beck@


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.12 22-Mar-2016 bluhm

tokenadm(8) is already pledged, do the same for tokeninit(8).
- bring comment in both programms in line
- tokeninit(8) needs "tty" for readpassphrase(3)
- call token_init() after pledge(2)
- fix whitespace
OK millert@


Revision tags: OPENBSD_5_9_BASE
# 1.11 12-Feb-2016 mmcc

hexidecimal -> hexadecimal


# 1.10 22-Dec-2015 mmcc

assign pointers to NULL rather than 0


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.9 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.8 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.7 09-Jul-2008 sobrado

an ellipsis is not an optional argument.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.6 15-Mar-2007 jmc

simplify synopsis/usage() and sort options;
from Igor Sobrado


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.5 27-May-2002 deraadt

unsigned to unsigned int


Revision tags: OPENBSD_3_1_BASE
# 1.4 14-Mar-2002 mpech

Remove \n from err/errx/warn/warnx().

millert@ ok


# 1.3 24-Oct-2001 mpech

getopt(3) returns -1 when out of args, not EOF.

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 20-Dec-2000 markus

use arc4random, clear secrets, use readpassphrase in tokeninit; ok millert@


# 1.1 20-Dec-2000 millert

Commands for manipulating the token database (ActivCard, CRYPTOCard, or SNK-004)
from BSDi. Will be enabled when BSD authentication is turned on (login_token).