aboutsummaryrefslogtreecommitdiff
path: root/lib/libcrypt
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Sync with HEAD.David E. O'Brien2013-02-082-0/+64
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-044-21/+12
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Convert libraries to use LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While here reduce a bit overlinking Notes: svn path=/head/; revision=275024
* | | | | | | Change the hardcoded default back from SHA512 to DES.Dag-Erling Smørgrav2014-10-091-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 192277 MFC after: 3 days Notes: svn path=/head/; revision=272830
* | | | | | | Add LIBCRYPT to DPADD, remove LDFLAGS from LDADD, and sort the Makefile ↵Enji Cooper2014-08-181-1/+2
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables This fixes "make checkdpadd" Phabric: D620 Approved by: jmmv (mentor) PR: 192729 MFC after: 5 days Notes: svn path=/head/; revision=270144
* | | | | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | | | | Don't break the legacy applications which setHajimu UMEMOTO2014-05-281-1/+5
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just 2 bytes to salt. MFC after: 1 week Notes: svn path=/head/; revision=266813
* | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | r261913 broke DES passwords, because the only way they could work,Dag-Erling Smørgrav2014-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 Notes: svn path=/head/; revision=264964
* | | | replace the kernel's version w/ cperciva's implementation... In allJohn-Mark Gurney2014-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@ Notes: svn path=/head/; revision=263218
* | | | Make bsd.test.mk the only public mk fragment for the building of tests.Julio Merino2014-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. Notes: svn path=/head/; revision=263161
* | | | various formating fixes, use NUL for NUL bytes..John-Mark Gurney2014-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 Notes: svn path=/head/; revision=262945
* | | | Switch the hardcoded default hash function from MD5 / DES to SHA512.Dag-Erling Smørgrav2014-02-151-5/+1
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=261913
* | | | Set up the /usr/tests hierarchy.Rui Paulo2013-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 Notes: svn path=/head/; revision=257097
* | | | Clearly split the logic to build ATF and plain tests apart.Rui Paulo2013-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 Notes: svn path=/head/; revision=256761
* | | | Remove most of the ATF tools and the _atf user.Rui Paulo2013-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 Notes: svn path=/head/; revision=256365
* | | Simple unit-tests for libcrypt, to show how easy it is.Simon J. Gerraty2012-11-072-0/+64
| |/ |/| | | | | | | | | | | Approved by: marcel (mentor) Notes: svn path=/head/; revision=242713
* | Stop using auth_getval() now that it always returns NULL. Instead,Dag-Erling Smørgrav2012-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 Notes: svn path=/head/; revision=236967
* | mdoc: minor Bl improvements.Joel Dahl2012-06-021-1/+1
|/ | | | Notes: svn path=/head/; revision=236438
* Make the item numbers match the crypt magic numberEitan Adler2012-04-111-0/+2
| | | | | | | | | | PR: docs/166497 Submitted by: Mike Kelly <pioto@pioto.org> Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=234132
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-4/+0
| | | | Notes: svn path=/head/; revision=233462
* s/shaN_crypt/crypt_shaN/g to be a more consistent with the existing naming.David E. O'Brien2011-05-054-14/+14
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=221471
* Protect the reachover built symbols after the SHA256/512 crypt(3) addition.David E. O'Brien2011-04-271-1/+3
| | | | Notes: svn path=/head/; revision=221142
* Document SHA256/512 modes.Mark Murray2011-04-091-2/+8
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=220498
* Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn'tMark Murray2011-04-096-1/+1009
| | | | | | | | | | | hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month Notes: svn path=/head/; revision=220497
* Build lib/ with WARNS=6 by default.Ed Schouten2010-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. Notes: svn path=/head/; revision=201381
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-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) Notes: svn path=/head/; revision=195767
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* cipher(3) is gone.Ceri Davies2007-04-041-1/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=168361
* Provide alternate default for SHLIBDIR before bsd.own.mk does this.Ruslan Ermilov2006-03-181-1/+2
| | | | | | | Reported by: phk Notes: svn path=/head/; revision=156837
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-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) Notes: svn path=/head/; revision=156813
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Fixed the misplaced $FreeBSD$.Ruslan Ermilov2005-02-091-3/+1
| | | | Notes: svn path=/head/; revision=141580
* Sort sections.Ruslan Ermilov2005-01-201-15/+15
| | | | Notes: svn path=/head/; revision=140505
* NOCRYPT -> NO_CRYPTRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139113
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-11/+21
| | | | Notes: svn path=/head/; revision=131504
* Stage 3 of dynamic root support. Make all the libraries needed to runGordon Tetlow2003-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. Notes: svn path=/head/; revision=119017
* The .Fn functionPhilippe Charnier2003-06-081-2/+5
| | | | Notes: svn path=/head/; revision=116027
* Tidy the code up a fraction. Re-release with a 2-clause BSD licenseMark Murray2003-06-021-19/+33
| | | | | | | | | with the kind permission of the author/copyright holder. Thanks to: phk Notes: svn path=/head/; revision=115733
* Add a new hash type. This "NT-hash" is compatible with the passwordMark Murray2003-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 Notes: svn path=/head/; revision=115720
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* crypt(3) incorrectly documents md5 salt, fixed.Tom Rhodes2002-04-091-1/+1
| | | | | | | | | PR: 36782 No objections from: ru MFC after: 3 days Notes: svn path=/head/; revision=94318
* Fix grammer in comment.Poul-Henning Kamp2002-03-251-1/+1
| | | | | | | Submitted by: Engin Gunduz <engin@ripe.net> Notes: svn path=/head/; revision=93157
* Modernize my email-address.Poul-Henning Kamp2002-03-251-1/+1
| | | | Notes: svn path=/head/; revision=93148
* Darn. There is (now was) a signed/unsigned issue that resulted in aMark Murray2002-03-071-4/+4
| | | | | | | | | very long loop. Reported by: nnd@mail.nsk.ru (Nickolay Dudorov) Notes: svn path=/head/; revision=91795
* No functional change, but big code cleanup. WARNS, lint(1) and style(9).Mark Murray2002-03-064-60/+63
| | | | Notes: svn path=/head/; revision=91754
* s/crypt_format/crypt_default/ to match reality.Ruslan Ermilov2001-12-131-1/+1
| | | | | | | | PR: docs/32787 Spotted by: Pete Carah <pete@altadena.net> Notes: svn path=/head/; revision=87788