History log of /openbsd/lib/libskey/skeylogin.c (Results 1 – 25 of 65)
Revision Date Author Comments
# f7d60097 23-Mar-2024 guenther <guenther@openbsd.org>

readdir_r(3) was never necessary and has been deprecated by POSIX.
Document that in the manpage and stop using it internally.

ok deraadt@ millert@ jmc@


# 848ef98a 15-Mar-2023 millert <millert@openbsd.org>

Fix the length check when computing a fake challenge for users not
in the S/Key database. If the system hostname is longer than 126
characters this could result in NUL bytes being written past the
e

Fix the length check when computing a fake challenge for users not
in the S/Key database. If the system hostname is longer than 126
characters this could result in NUL bytes being written past the
end of a stack buffer. There is no impact on systems with a hostname
126 characters or less. Found by Qualys. OK deraadt@

show more ...


# 2c53affb 27-Dec-2022 jmc <jmc@openbsd.org>

spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;


# bf198cc6 25-Jan-2019 millert <millert@openbsd.org>

I am retiring my old email address; replace it with my OpenBSD one.


# 0c5f34ee 17-Apr-2017 deraadt <deraadt@openbsd.org>

use freezero()


# 83b34f4f 20-Mar-2017 tb <tb@openbsd.org>

Generate the bogus challenge using arc4random_buf(3) instead of reading
directly from /var/db/host.random and falling back to ctime. Remove the
_SKEY_RAND_FILE_PATH_ since it's no longer needed.

ok

Generate the bogus challenge using arc4random_buf(3) instead of reading
directly from /var/db/host.random and falling back to ctime. Remove the
_SKEY_RAND_FILE_PATH_ since it's no longer needed.

ok millert, mestre

show more ...


# 7fa9d5fb 20-Mar-2017 tedu <tedu@openbsd.org>

use explicit_bzero. one from Ricardo Mestre plus two more.


# 91da4d97 17-Mar-2016 krw <krw@openbsd.org>

'miliseconds' -> 'milliseconds' in comments.

if_atu.c noted by Michal Mazurek.


# a47b6461 18-Apr-2015 deraadt <deraadt@openbsd.org>

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# 80c62621 29-Nov-2013 deraadt <deraadt@openbsd.org>

fairly simple unsigned char casts for ctype
ok krw


# 2c74d5bf 20-Mar-2007 tedu <tedu@openbsd.org>

remove some bogus *p tests from charles longeau
ok deraadt millert


# 01b765a7 10-Apr-2006 deraadt <deraadt@openbsd.org>

minimal cleanups lint begs for


# 4dd1809c 05-Aug-2004 millert <millert@openbsd.org>

Add skeychallenge2() which is like skeychallenge() but takes an
already open fd. Will be used to make separate challenge/response
invocations of login_skey keep the record locked. Also properly
esc

Add skeychallenge2() which is like skeychallenge() but takes an
already open fd. Will be used to make separate challenge/response
invocations of login_skey keep the record locked. Also properly
escape minus signs in man page. OK henning@ jmc@

show more ...


# 35181817 21-Sep-2003 millert <millert@openbsd.org>

convert tgetline() from select(2) -> poll(2)


# 04f1d2d6 28-Apr-2003 millert <millert@openbsd.org>

fix skeygetnext()


# d4a8371f 03-Apr-2003 millert <millert@openbsd.org>

Use snprintf() and strlcpy() throughout.


# 0dce563b 16-Nov-2002 millert <millert@openbsd.org>

Zero out struct skey early in skeylookup() so callers can reliably check
for keyfile == NULL and not get a garbage value.


# eadc981f 16-Nov-2002 millert <millert@openbsd.org>

Add a missing check for NULL keyfile in skeychallenge() that
caused a user w/o an S/Key to just get "permission denied" from
login_skey instead of a fake challenge.


# 2cab24aa 22-Jun-2002 deraadt <deraadt@openbsd.org>

use strtok_r() instead of strtok(); millert ok


# e624a199 24-May-2002 deraadt <deraadt@openbsd.org>

enforce SKEY_MAX_CHALLENGE using snprintf()


# ddf098e0 17-May-2002 millert <millert@openbsd.org>

Remove skeyzero(), it is no longer needed.


# 415a08be 16-May-2002 millert <millert@openbsd.org>

Check for disabled /etc/skey directory (mode 0000). This is needed
because some things (such as login) run as uid 0 and directory modes
won't restrict root.


# fc7f3601 16-May-2002 millert <millert@openbsd.org>

Change S/Key stuff from using a flat file (/etc/skeykeys) to a directory
where each user gets their own file, which is owned by that user.

An old S/Key database may be converted by running "skeyinit

Change S/Key stuff from using a flat file (/etc/skeykeys) to a directory
where each user gets their own file, which is owned by that user.

An old S/Key database may be converted by running "skeyinit -C" as root.

Programs that need to access the S/Key database no longer need to be
setuid root. They must now be setgid auth instead.

show more ...


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


123