summaryrefslogtreecommitdiffstats
path: root/contrib/opie/libopie
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r269806,r269809,r269811,r269810ache2014-08-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | r269806: 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). r269809: When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX r269811: Last '/' for program name, not first one. r269810: Link otp-sha1 to match real challenge prompt, not otp-sha. PR: 191511 Submitted by: mitsururike@gmail.com (partially, PR 269806)
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS ineadler2012-12-061-1/+1
| | | | | | | | | | | | share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* RFC 2289 requires all hashes be stored in little endian format beforedelphij2012-08-102-0/+18
| | | | | | | | | | | | folding to 64 bits, while SHA1 code is big endian. Therefore, a bswap32 is required before using the value. Without this change, the implementation does not conform to test vector found in RFC 2289. PR: bin/170519 Submitted by: Arthur Mesh <arthurmesh gmail com> (with changes) MFC after: 1 week
* Change the current working directory to be inside the jail created bycperciva2010-05-271-3/+1
| | | | | | | | | | | | | | the jail(8) command. [10:04] Fix a one-NUL-byte buffer overflow in libopie. [10:05] Correctly sanity-check a buffer length in nfs mount. [10:06] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-10:04.jail Security: FreeBSD-SA-10:05.opie Security: FreeBSD-SA-10:06.nfsclient
* Don't include <utmp.h> when using <utmpx.h>.ed2010-01-113-3/+6
| | | | | | | libopie includes both <utmp.h> and <utmpx.h> in this case and uses some #defines to let the code use struct utmpx and its utility functions. We'd better not include <utmp.h> here, because maybe it will not be present in the future.
* Create /etc/opiekeys with 0600, not 0644ache2005-07-292-3/+7
| | | | PR: 84221
* When computing a new seed for an existing user, opienewseed() woulddes2003-01-221-5/+4
| | | | | | | | | | | incorrectly compute the length of the numeric portion of the previous seed, causing the new seed to be one character shorter than the old one. This patch has been submitted to the vendor; I'm committing it right away since the file is already off the vendor branch. MFC after: 3 days
* Resolve conflicts.markm2002-03-217-123/+411
|
* This commit was generated by cvs2svn to compensate for changes in r92906,markm2002-03-2125-99/+196
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of OPIE 2.4markm2002-03-2132-246/+643
| |
* | Zeroing memset() in opiechallenge() really is not needed because it is theache2002-01-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | very first thing immediately following opielookup() does being entered, i.e. look at this: int opielookup FUNCTION((opie, principal), struct opie *opie AND char *principal ) { int i; memset(opie, 0, sizeof(struct opie)); ...
* | Add heuristic to detect SSH connection (in the same style as otherache2001-08-291-0/+5
| | | | | | | | | | | | heuristics already here which not supposed to be secure, just helpers). Approved by: security@ silence
* | Fix SHA1 hashing.markm2001-07-142-21/+17
| |
* | Allow applications to disable the installation of the atexit() handlerkris2000-04-171-2/+10
| | | | | | | | | | | | which cleans up OPIE lockfiles. This is required for pam_opie. Submitted by: Jim Bloom <bloom@acm.org>
* | Resolve conflictskris2000-04-104-15/+41
| |
* | This commit was generated by cvs2svn to compensate for changes in r59118,kris2000-04-1028-81/+110
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Upgrade to OPIE 2.32, from http://www.inner.net/pub/opie/kris2000-04-1032-96/+143
| |
* | Fixed printf format errors.bde1998-06-301-1/+1
| |
* | Mergeache1997-09-293-54/+40
| |
* | This commit was generated by cvs2svn to compensate for changes in r29964,ache1997-09-2929-263/+407
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Upgrade to 2.31ache1997-09-2932-310/+446
| |
* | Detect null secret as error, it is temp. fix until next releaseache1997-08-051-0/+3
| | | | | | | | Submitted by: Craig Metz <cmetz@inner.net>
* | Disconnect OPIE from internal MD4/5 routinespst1997-02-072-18/+30
|/
* Initial import of OPIE v2.3 frompst1997-02-0631-0/+5491
ftp://ftp.nrl.navy.mil/pub/security/opie/
OpenPOWER on IntegriCloud