summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt
Commit message (Collapse)AuthorAgeFilesLines
* Add LIBCRYPT to DPADD, remove LDFLAGS from LDADD, and sort the Makefile ↵ngie2014-08-181-1/+2
| | | | | | | | | | | variables This fixes "make checkdpadd" Phabric: D620 Approved by: jmmv (mentor) PR: 192729 MFC after: 5 days
* use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* Don't break the legacy applications which setume2014-05-281-1/+5
| | | | | | just 2 bytes to salt. MFC after: 1 week
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | from the latter.
* r261913 broke DES passwords, because the only way they could work,des2014-04-261-77/+56
| | | | | | | | | | | | | | | | | | | | | since they don't have an easily recognizable signature, was if they were the default. This commit rewrites crypt_set_format(3) etc to address this: - Use a pointer instead of an index to identify the default format. This pointer is initialized at compile time to point to the first first element in the list of supported formats, eliminating the need for crypt_setdefault(). Using a pointer also simplifies iterating through the list. - Associate DES with the magic string "_", which takes care of the Extended DES format. - Finally, as a special case, if the salt does not match any known magic string but matches ^[./0-9A-Za-z]{13}$, it is assumed to be a DES password and is passed on to crypt_des(). MFC after: 1 week
* replace the kernel's version w/ cperciva's implementation... In alljmg2014-03-161-1/+1
| | | | | | | | | | | | | | | | | my tests, it is faster ~20%, even on an old IXP425 533MHz it is ~45% faster... This is partly due to loop unrolling, so the code size does significantly increase... I do plan on committing a version that rolls up the loops again for smaller code size for embedded systems where size is more important than absolute performance (it'll save ~6k code)... The kernel implementation is now shared w/ userland's libcrypt and libmd... We drop support for sha256 from sha2.c, so now sha2.c only contains sha384 and sha512... Reviewed by: secteam@
* Make bsd.test.mk the only public mk fragment for the building of tests.jmmv2014-03-141-1/+1
| | | | | | | | | | | | | | Change {atf,plain,tap}.test.mk to be internal implementation details of bsd.test.mk. Makefiles that build tests should now only include bsd.test.mk and declaratively specify what they want to build, without worrying about the internal implementation of the mk files. The reason for this change is to permit building test programs of different interfaces from a single directory, which is something I had a need for while porting tests over from src/tools/regression/. Additionally, this change makes it possible to perform some other requested changes to bsd.test.mk in an easier manner. Coming soon.
* various formating fixes, use NUL for NUL bytes..jmg2014-03-091-29/+37
| | | | | | | | | | | | | | | drop out dated perf numbers (can't imagine people are still running Pentium MMX 166's anymore)... bump date... drop max length of salt of 8 since _PASSWORD_LEN is now large, 128.. and state the max length of the salt depends upon the module, sha-{256,512} have a max salt of 16.. recommend 8 characters of salt instead of just 2... MFC after: 1 week
* Switch the hardcoded default hash function from MD5 / DES to SHA512.des2014-02-151-5/+1
|
* Set up the /usr/tests hierarchy.rpaulo2013-10-252-0/+7
| | | | | | | | | | | | | | | | | | | Populate /usr/tests with the only test programs that currently live in the tree (those in lib/libcrypt/tests/) and add all the build machinery to accompany this change. In particular: - Add a WITHOUT_TESTS variable that users can define to request that no tests be put in /usr/tests. - Add a top-level Kyuafile for /usr/tests and a way to create similar Kyuafiles in top-level subdirectories. - Add a BSD.tests.dist file to define the directory layout of /usr/tests. Submitted by: Julio Merino jmmv google.com Reviewed by: sjg MFC after: 2 weeks
* Clearly split the logic to build ATF and plain tests apart.rpaulo2013-10-191-1/+1
| | | | | | | | | | | | | | | | | | This change introduces a new plain.test.mk file that provides the build infrastructure to build test programs that don't use any framework. Most of the code previously in bsd.test.mk moves to plain.test.mk and atf.test.mk is extended with the missing pieces. In doing so, this change pushes all test program building logic to the various *.test.mk files instead of trying to reuse some tiny bits. In fact, this attempt to reuse some definitions makes the code harder to read and harder to extend. The clear benefit of this is that the interface of bsd.test.mk is now clearly delimited. Submitted by: Julio Merino jmmv google.com MFC after: 2 weeks
* Remove most of the ATF tools and the _atf user.rpaulo2013-10-121-1/+1
| | | | | | | | This is necessary because ATF is deprecated and it will be replaced by Kyua. Submitted by: jmmv@netbsd.org Reviewed by: Garrett Cooper Approved by: re
* Simple unit-tests for libcrypt, to show how easy it is.sjg2012-11-072-0/+64
| | | | Approved by: marcel (mentor)
* Stop using auth_getval() now that it always returns NULL. Instead,des2012-06-123-20/+8
| | | | | | | hardcode the default to what it would be if we didn't hardcode it, i.e. DES if supported and MD5 otherwise. MFC after: 3 weeks
* mdoc: minor Bl improvements.joel2012-06-021-1/+1
|
* Make the item numbers match the crypt magic numbereadler2012-04-111-0/+2
| | | | | | | PR: docs/166497 Submitted by: Mike Kelly <pioto@pioto.org> Approved by: cperciva MFC after: 1 week
* Remove superfluous paragraph macro.joel2012-03-251-4/+0
|
* s/shaN_crypt/crypt_shaN/g to be a more consistent with the existing naming.obrien2011-05-054-14/+14
| | | | Reviewed by: markm
* Protect the reachover built symbols after the SHA256/512 crypt(3) addition.obrien2011-04-271-1/+3
|
* Document SHA256/512 modes.markm2011-04-091-2/+8
| | | | MFC after: 1 month
* Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn'tmarkm2011-04-096-1/+1009
| | | | | | | | hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
* Build lib/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* Bump library versions in preparation for 7.0.deischen2007-05-211-1/+1
| | | | Ok'd by: kan
* cipher(3) is gone.ceri2007-04-041-1/+0
| | | | MFC after: 3 days
* Provide alternate default for SHLIBDIR before bsd.own.mk does this.ru2006-03-181-1/+2
| | | | Reported by: phk
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+3
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Fixed the misplaced $FreeBSD$.ru2005-02-091-3/+1
|
* Sort sections.ru2005-01-201-15/+15
|
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Mechanically kill hard sentence breaks.ru2004-07-021-11/+21
|
* Stage 3 of dynamic root support. Make all the libraries needed to rungordon2003-08-171-0/+1
| | | | | | binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
* The .Fn functioncharnier2003-06-081-2/+5
|
* Tidy the code up a fraction. Re-release with a 2-clause BSD licensemarkm2003-06-021-19/+33
| | | | | | with the kind permission of the author/copyright holder. Thanks to: phk
* Add a new hash type. This "NT-hash" is compatible with the passwordmarkm2003-06-025-11/+123
| | | | | | | hashing scheme used in Microsoft's NT machines. IT IS NOT SECURE! DON'T USE IT! This is for the use of competent sysadmins only! Submitted by: Michael Bretterklieber
* Retire the useless NOSECURE knob.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* english(4) police.schweikh2002-12-271-1/+1
|
* crypt(3) incorrectly documents md5 salt, fixed.trhodes2002-04-091-1/+1
| | | | | | PR: 36782 No objections from: ru MFC after: 3 days
* Fix grammer in comment.phk2002-03-251-1/+1
| | | | Submitted by: Engin Gunduz <engin@ripe.net>
* Modernize my email-address.phk2002-03-251-1/+1
|
* Darn. There is (now was) a signed/unsigned issue that resulted in amarkm2002-03-071-4/+4
| | | | | | very long loop. Reported by: nnd@mail.nsk.ru (Nickolay Dudorov)
* No functional change, but big code cleanup. WARNS, lint(1) and style(9).markm2002-03-064-60/+63
|
* s/crypt_format/crypt_default/ to match reality.ru2001-12-131-1/+1
| | | | | PR: docs/32787 Spotted by: Pete Carah <pete@altadena.net>
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* Implement __FBSDID()dillon2001-09-163-11/+7
|
* Remove out-of-date "cannot be exported from USA" notice.markm2001-08-151-2/+0
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-132-6/+0
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
OpenPOWER on IntegriCloud