freebsd-skq/contrib/opie/libopie
ache 41f23f3992 Fix too long (seed length >12 chars) challenge handling.
1) " ext" length should be included into OPIE_CHALLENGE_MAX (as all places
of opie code expects that).
2) Overflow check in challenge.c is off by 1 even with corrected
OPIE_CHALLENGE_MAX
3) When fallback to randomchallenge() happens and rval is 0 (i.e.
challenge is too long), its value should be set to error state too.

To demonstrate the bug, run opiepasswd with valid seed:
opiepasswd -s 1234567890123456
and notice that it falls back to randomchallenge() (i.e. no
1234567890123456 in the prompt).

PR:             191511
Submitted by:   mitsururike@gmail.com (partially)
MFC after:      1 week
2014-08-11 12:26:48 +00:00
..
accessfile.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
atob8.c
btoa8.c
btoe.c
btoh.c
challenge.c Fix too long (seed length >12 chars) challenge handling. 2014-08-11 12:26:48 +00:00
generator.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
getsequence.c
getutmpentry.c
hash.c
hashlen.c
insecure.c
keycrunch.c
lock.c
login.c
logwtmp.c
lookup.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
Makefile.in
md4c.c
md5c.c
newseed.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
open.c
parsechallenge.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
passcheck.c
passwd.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
randomchallenge.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
readpass.c
readrec.c
unlock.c
verify.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
version.c Queisce two category of clang warnings: 2013-10-28 18:24:31 +00:00
writerec.c