summaryrefslogtreecommitdiffstats
path: root/lib/libskey
AgeCommit message (Collapse)AuthorFilesLines
2020-10-24some fixes from varik valefor;jmc1-5/+5
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.millert5-12/+12
2017-04-17use freezero()deraadt1-3/+2
2017-03-20Generate the bogus challenge using arc4random_buf(3) instead of readingtb2-37/+8
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
2017-03-20use explicit_bzero. one from Ricardo Mestre plus two more.tedu1-4/+4
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-10/+1
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-17'miliseconds' -> 'milliseconds' in comments.krw1-2/+2
if_atu.c noted by Michal Mazurek.
2015-11-10update NAME section to include all documented functions,jmc1-3/+3
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-10-06Don't burden keycrunch_{md5,sha1,rmd160}() with identical code to prepare atim1-98/+30
buffer based on whether they are called by keycrunch() or f(). Instead let keycrunch() and f() take care of this themselves. OK millert@
2015-09-10use .In rather than .Fd #includeschwarze1-3/+3
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failurederaadt1-2/+5
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-01-16Move to the <limits.h> universe.deraadt1-2/+2
review by millert, binary checking process with doug, concept with guenther
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>schwarze1-4/+3
2014-03-25Fix two bugs introduced after MD4 removal: Change the default algorithmlteo1-7/+7
back to md5 (as documented on the man pages), and do not let skey_set_algorithm() cause a segfault if an unsupported algorithm is specified. earlier version ok tedu@ help/ok millert@, ok naddy@
2014-03-20Remove the (non-default) MD4 hash algorithm from S/Key.naddy3-51/+6
ok millert, man pages ok jmc@
2013-11-29fairly simple unsigned char casts for ctypederaadt3-13/+14
ok krw
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther1-2/+2
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan1-2/+1
ok guenther@
2007-05-31convert to new .Dd format;jmc2-4/+4
2007-05-17Check fgets return value, from Charles Longeau.ray1-3/+5
OK millert@.
2007-03-20remove some bogus *p tests from charles longeautedu1-2/+2
ok deraadt millert
2006-04-10minimal cleanups lint begs forderaadt2-30/+29
2005-11-24use WANTLINT= (on all architectures)deraadt1-1/+2
2005-10-12remove MLINK for skeyzero.3: the function was removed in -r1.5;jmc1-2/+2
2004-08-05Add skeychallenge2() which is like skeychallenge() but takes anmillert5-43/+67
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@
2004-07-28Use SHA1Pad() instead of relying on unspecified behavior.millert1-2/+2
2004-07-13errno changes, lib major version bumps, and general flag daymarc1-1/+1
To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
2003-09-21convert tgetline() from select(2) -> poll(2)millert1-23/+12
2003-06-26simple protosderaadt1-2/+2
2003-06-17Sync with share/misc/license.template and add missing DARPA creditmillert2-16/+20
where applicable.
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2-44/+22
2003-06-02- section reorderjmc1-6/+6
- kill whitespace at EOL
2003-05-24- typos;jmc1-28/+28
- new sentence, new line; - whitespace at EOL
2003-04-28fix skeygetnext()millert1-8/+23
2003-04-03Use snprintf() and strlcpy() throughout.millert3-133/+65
2003-03-19document the number of bytes required for btoa8millert1-2/+3
2003-01-23typos;jmc1-2/+2
ok millert@
2002-12-03Crank all library major numbers. Needed due to the fact that wemillert1-1/+1
now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
2002-11-16Zero out struct skey early in skeylookup() so callers can reliably checkmillert1-3/+3
for keyfile == NULL and not get a garbage value.
2002-11-16Add a missing check for NULL keyfile in skeychallenge() thatmillert1-3/+5
caused a user w/o an S/Key to just get "permission denied" from login_skey instead of a fake challenge.
2002-06-22use strtok_r() instead of strtok(); millert okderaadt2-15/+16
2002-05-29strlcat boundsderaadt1-5/+5
2002-05-24replace strcpy with strlcpyderaadt1-5/+5
2002-05-24enforce SKEY_MAX_CHALLENGE using snprintf()deraadt1-12/+9
2002-05-24doc that skeychallenge() buffer is at least SKEY_MAX_CHALLENGE longderaadt1-2/+3
2002-05-17Remove skeyzero(), it is no longer needed.millert2-45/+3
2002-05-16Add skey(5)millert2-2/+97
2002-05-16Check for disabled /etc/skey directory (mode 0000). This is neededmillert1-3/+11
because some things (such as login) run as uid 0 and directory modes won't restrict root.
2002-05-16Change S/Key stuff from using a flat file (/etc/skeykeys) to a directorymillert4-344/+222
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.
2002-04-30Initial cleanup:mpech1-3/+3
o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok