259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
256366 |
12-Oct-2013 |
rpaulo |
MFC 256365 Remove most of the ATF tools and the _atf user.
Approved by: re
|
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
242713 |
07-Nov-2012 |
sjg |
Simple unit-tests for libcrypt, to show how easy it is.
Approved by: marcel (mentor)
|
236967 |
12-Jun-2012 |
des |
Stop using auth_getval() now that it always returns NULL. Instead, 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
|
236438 |
02-Jun-2012 |
joel |
mdoc: minor Bl improvements.
|
234132 |
11-Apr-2012 |
eadler |
Make the item numbers match the crypt magic number
PR: docs/166497 Submitted by: Mike Kelly <pioto@pioto.org> Approved by: cperciva MFC after: 1 week
|
233462 |
25-Mar-2012 |
joel |
Remove superfluous paragraph macro.
|
221471 |
05-May-2011 |
obrien |
s/shaN_crypt/crypt_shaN/g to be a more consistent with the existing naming.
Reviewed by: markm
|
221142 |
27-Apr-2011 |
obrien |
Protect the reachover built symbols after the SHA256/512 crypt(3) addition.
|
220498 |
09-Apr-2011 |
markm |
Document SHA256/512 modes.
MFC after: 1 month
|
220497 |
09-Apr-2011 |
markm |
Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn't hurt us.
PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
|
201381 |
02-Jan-2010 |
ed |
Build lib/ with WARNS=6 by default.
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.
|
195767 |
19-Jul-2009 |
kensmith |
Bump the version of all non-symbol-versioned shared libraries in 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)
|
169807 |
21-May-2007 |
deischen |
Bump library versions in preparation for 7.0.
Ok'd by: kan
|
168361 |
04-Apr-2007 |
ceri |
cipher(3) is gone.
MFC after: 3 days
|
156837 |
18-Mar-2006 |
ru |
Provide alternate default for SHLIBDIR before bsd.own.mk does this.
Reported by: phk
|
156813 |
17-Mar-2006 |
ru |
Reimplementation of world/kernel build options. For details, see:
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)
|
148297 |
22-Jul-2005 |
kensmith |
Bump the shared library version number of all libraries that have not been bumped since RELENG_5.
Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
|
141580 |
09-Feb-2005 |
ru |
Fixed the misplaced $FreeBSD$.
|
140505 |
20-Jan-2005 |
ru |
Sort sections.
|
139113 |
21-Dec-2004 |
ru |
NOCRYPT -> NO_CRYPT
|
136910 |
24-Oct-2004 |
ru |
For variables that are only checked with defined(), don't provide any fake value.
|
131504 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
119017 |
17-Aug-2003 |
gordon |
Stage 3 of dynamic root support. Make all the libraries needed to run 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.
|
116027 |
08-Jun-2003 |
charnier |
The .Fn function
|
115733 |
02-Jun-2003 |
markm |
Tidy the code up a fraction. Re-release with a 2-clause BSD license with the kind permission of the author/copyright holder.
Thanks to: phk
|
115720 |
02-Jun-2003 |
markm |
Add a new hash type. This "NT-hash" is compatible with the password 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
|
115157 |
19-May-2003 |
des |
Retire the useless NOSECURE knob.
Approved by: re (scottl)
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
94318 |
09-Apr-2002 |
trhodes |
crypt(3) incorrectly documents md5 salt, fixed.
PR: 36782 No objections from: ru MFC after: 3 days
|
93157 |
25-Mar-2002 |
phk |
Fix grammer in comment.
Submitted by: Engin Gunduz <engin@ripe.net>
|
93148 |
25-Mar-2002 |
phk |
Modernize my email-address.
|
91795 |
07-Mar-2002 |
markm |
Darn. There is (now was) a signed/unsigned issue that resulted in a very long loop.
Reported by: nnd@mail.nsk.ru (Nickolay Dudorov)
|
91754 |
06-Mar-2002 |
markm |
No functional change, but big code cleanup. WARNS, lint(1) and style(9).
|
87788 |
13-Dec-2001 |
ru |
s/crypt_format/crypt_default/ to match reality.
PR: docs/32787 Spotted by: Pete Carah <pete@altadena.net>
|
84306 |
01-Oct-2001 |
ru |
mdoc(7) police: Use the new .In macro for #include statements.
|
83551 |
16-Sep-2001 |
dillon |
Implement __FBSDID()
|
81733 |
15-Aug-2001 |
markm |
Remove out-of-date "cannot be exported from USA" notice.
|
81586 |
13-Aug-2001 |
ru |
Removed duplicate VCS ID tags, as per style(9).
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79557 |
10-Jul-2001 |
ru |
mdoc(7) police: removed punctuation after the last SEE ALSO xref.
|
79531 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
78686 |
24-Jun-2001 |
dd |
Remove duplicate words.
|
74870 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
74607 |
21-Mar-2001 |
peter |
Help standalone builds by getting libutil.h from src/lib/libutil
|
74339 |
16-Mar-2001 |
ru |
mdoc(7) police: ``It'' macro does not take argument in -enum lists. (In -mdocNG, this only causes warning. In current implementation, it is fatal.)
Pointy hat to: markm (for not checking stderr)
|
74106 |
11-Mar-2001 |
markm |
Add OpenBSD-style blowfish password hashing. This makes one less gratuitous difference between us and our sister project.
This was given to me _ages_ ago. May apologies to Paul for the length of time its taken me to commit.
Obtained from: Niels Provos <provos@physnet.uni-hamburg.de>/OpenBSD Submitted by: Paul Herman <pherman@frenchfries.net>
|
70481 |
29-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
70422 |
28-Dec-2000 |
peter |
Reflect rev 1.18 in crypt.c. Note that this section is somewhat mangled and could do with some word-smithing.
|
70421 |
28-Dec-2000 |
peter |
Hindsight is wonderful, but I got cold feet over the crypt(3) default so I am backing it out for now. The problem is that some random program calling crypt() could be passing a DES salt and the crypt(3) library would encrypt it in md5 mode and there would be a password mismatch as a result. I wrote a validater function for the DES code to verify that a salt is valid for DES, but I realized there were too many strange things to go wrong. passwd(1), pw(8) etc still generate md5 passwords by default for /etc/master.passwd, so this is almost academic. It is a big deal for things that have their own crypt(3)-ed password strings (.htaccess, etc etc). Those are the things I do not want to break.
My DES salt recognizer basically checked if the salt was either 2 or 13 characters long, or began with '_' (_PASSWORD_EFMT1). I think it would have worked but I have seen way too much crypt() mishandling in the past.
|
70419 |
28-Dec-2000 |
peter |
Merge into a single US-exportable libcrypt, which only provides one-way hash functions for authentication purposes. There is no more "set the libcrypt->libXXXcrypt" nightmare. - Undo the libmd.so hack, use -D to hide the md5c.c internals. - Remove the symlink hacks in release/Makefile - the algorthm is set by set_crypt_format() as before. If this is not called, it tries to heuristically figure out the hash format, and if all else fails, it uses the optional auth.conf entry to chose the overall default hash. - Since source has non-hidden crypto in it there may be some issues with having the source it in some countries, so preserve the "secure/*" division. You can still build a des-free libcrypt library if you want to badly enough. This should not be a problem in the US or exporting from the US as freebsd.org had notified BXA some time ago. That makes this stuff re-exportable by anyone. - For consistancy, the default in absence of any other clues is md5. This is to try and minimize POLA across buildworld where folk may suddenly be activating des-crypt()-hash support. Since the des hash may not always be present, it seemed sensible to make the stronger md5 algorithm the default. All things being equal, no functionality is lost.
Reviewed-by: jkh
(flame-proof suit on)
|
69026 |
22-Nov-2000 |
ru |
log
|
65053 |
24-Aug-2000 |
green |
Still have to support libscrypt for now :( Add #defines to take DES out for it.
|
64919 |
22-Aug-2000 |
green |
How did you sneak in...
|
64918 |
22-Aug-2000 |
green |
Add working and easy crypt(3)-switching. Yes, we need a whole new API for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8).
The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
|
59524 |
22-Apr-2000 |
kris |
Oops, remove vestigial reference to SHS passwords.
|
59504 |
22-Apr-2000 |
phantom |
Introduce .Lb macro to libcrypt manpage. Make it more mdoc(7) compliant: . use .Tn for DES, MD5 andSHS. . Replace double quotes with .Dq macro . use An/Aq scheme for listing authors
|
56251 |
18-Jan-2000 |
markm |
A bunch of factual corrections.
|
55897 |
13-Jan-2000 |
bde |
Fixed missing include in synopsis.
|
55535 |
07-Jan-2000 |
kris |
Zap SHA1 password support. This will be re-implemented at a later date.
|
55042 |
23-Dec-1999 |
bde |
Fixed a formatting error in the prototype for crypt().
|
54753 |
17-Dec-1999 |
peter |
Make a dlopen failure consistant with dlsym(). "Shouldn't happen."
|
54752 |
17-Dec-1999 |
peter |
patch glitch
|
54751 |
17-Dec-1999 |
peter |
Remove -lmd. Use dlopen() and dlsym() instead for calls to the MD5* and SHA* routines so that callers of libcrypt are not exposed to the internal implementation.
|
51538 |
22-Sep-1999 |
markm |
Never return NULL, always return a hash.
Submitted by: dt
|
51510 |
21-Sep-1999 |
dt |
Someone changed major numbers of the libraries from 2 to 3 for 0 (zero) reasons. Revert the major number back to 2.
libcrypt only export one function, before the recent changes and now: char *crypt(const char *key, const char *salt); The prototype didn't changed. Internal representation of `char' and `char *' didn't changed. Therefore, there is no reason to change the version number.
|
51505 |
21-Sep-1999 |
peter |
Somebody deleted the SONAME override causing the symlink to be expanded at link time and the target name compiled into the binaries. ie: everything used libscrypt or libdescrypt explicitly.
|
51462 |
20-Sep-1999 |
markm |
Big code cleanup. (Inspired by Brandon Gillespie). Also move as much as possible away from secure/ to make extending easier.
|
50488 |
28-Aug-1999 |
peter |
$Header$ -> $FreeBSD$
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
44947 |
23-Mar-1999 |
bde |
Simplified using new SYMLINKS macro, mainly to test this macro. The ifdefs are too ugly for this to be much of a simplification. The existence tests are even uglier now. Note that the previous commit was not submitted by me. It missed the point and just added a second layer of unused removals.
Fixed hard-coded "libcrypt"s. The LCRYPTBASE macro mainly makes things hard to read, but use it while we have it.
|
43152 |
24-Jan-1999 |
markm |
Fix symlinking. Without the -f "force" option, the wrong version can be found. Submitted by: Bruce
|
43092 |
23-Jan-1999 |
markm |
The new crypt code broke "make world". Back it out.
|
42982 |
21-Jan-1999 |
brandon |
Moved from the old secure/lib/libcrypt area, because of the rewrite to how the Makefile handles des support by just including the single .c file.
Reviewed by: Mark Murray
|
42981 |
21-Jan-1999 |
brandon |
Rewrite of crypt library to be more modular, and addition of the Secure Hashing Algorithm - 1 (SHA-1), along with the further refinement of what $x$salt$hash means. With this new crypt the following are all acceptable:
$1$ $MD5$ $SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding as $BF$, but there is no actual need for it with SHA-1. However, somebody wishing to add OpenBSD password support could easilly add it in now.
There is also a malloc_crypt() available in the library now, which behaves exactly the same as crypt(), but it uses a malloced buffer instead of a static buffer. However, this is not standard so will likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX, which shows the DES crypt to do approximately 2640 crypts a CPU second, MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts a CPU second.
Reviewed by: Mark Murray
|
38753 |
02-Sep-1998 |
bde |
Fixed the elf case of the creation of the libcrypt.so -> libscrypt->so link. Shared libraries are in ${SHLIBDIR}, not necessarily in ${LIBDIR}.
|
38635 |
30-Aug-1998 |
jb |
BINFORMAT -> OBJFORMAT ready for E-day.
|
38632 |
30-Aug-1998 |
jb |
BINFORMAT -> OBJFORMAT ready for E-day.
|
36443 |
28-May-1998 |
peter |
Turn on the rcsid storage so that it's easier to tell the difference between libscrypt.a and libdescrypt.a
|
29146 |
05-Sep-1997 |
peter |
When compiling under elf, use correct library naming conventions. Also add the required extra symlink. Set the -soname to libcrypt.so so that the symlink is used at runtime rather than resolved at compile time.
|
22993 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
18918 |
14-Oct-1996 |
phk |
A couple of minor nits.
Submitted by: Craig Leres <leres@ee.lbl.gov> Submitted by: Theo Deraadt <deraadt@theos.com>
|
17141 |
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
8870 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
4454 |
14-Nov-1994 |
bde |
Install shared libraries in ${DESTDIR}${SHLIBDIR} instead of in $(DESTDIR)/$(LIBDIR) (I need SHLIBDIR. The / was a bug and the $(...) style was inconsistent.)
Install ordinary libraries in ${DESTDIR}${LIBDIR} instead of in $(DESTDIR)/$(LIBDIR).
Change remaining $(...) to ${...}.
|
4246 |
07-Nov-1994 |
phk |
*** ATTENTION *** YOU MIGHT BE ABOUT TO BE HOSED *** ATTENTION ***
This effectively changes the non-DES password algoritm.
If you have the "securedist" installed you will have no problems with this. (Though you might want to consider using this password-encryption instead of the DES-based if your system is likely to be hacked)
If you are running a -current system without the "securedist" installed: YOU WILL NEED TO CHANGE ALL PASSWORDS !! There is no backwards mode.
Suggested procedure is: Update your sources cd /usr/src/lib/libcrypt make clean make all make install passwd root <set roots new password> change password for any other users on the system.
This algorithm is expected to be much better than the traditional DES- based algorithm. It uses the MD5 algorithm at what it is best at, as opposed to the DES algorithm at something it isn't good at at all. The algorithm is designed such that it should very hard to shortcut the calculations needed to build a dictionary, and to make partial knowledge (Hmm, his password starts with a 'P'...) useless. Of course if somebody breaks the MD5 algorithm this looses too.
The salt is 48 bits (8 char @ base64). The encrypted password is 128 bits.
And I am positively delighted to say that it takes 34 msec to crypt() a password on a Pentium/60Mhz, so building a dictionary is not really an option for hackers at the moment.
|
2155 |
20-Aug-1994 |
csgr |
Fix afterinstall rule for generating links to the real libcrypt Submitted by: geoff
|
2045 |
12-Aug-1994 |
csgr |
Fix afterinstall rule for NOSHARED case Submitted by: Geoff Rehmet
|
1989 |
09-Aug-1994 |
csgr |
The password scrambler now becomes libscrypt, and libcrypt is a symlink to it. (The real libcrypt will be installed as libdescrypt.) Submitted by: Geoff.
|
1985 |
09-Aug-1994 |
csgr |
This commit was generated by cvs2svn to compensate for changes in r1984, which included commits to RCS files with non-trunk default branches.
|