summaryrefslogtreecommitdiff
path: root/lib/libcrypt
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Implement __FBSDID()Matthew Dillon2001-09-163-11/+7
| | | | Notes: svn path=/head/; revision=83551
* Remove out-of-date "cannot be exported from USA" notice.Mark Murray2001-08-151-2/+0
| | | | Notes: svn path=/head/; revision=81733
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-132-6/+0
| | | | Notes: svn path=/head/; revision=81586
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed punctuation after the last SEE ALSO xref.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79557
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Remove duplicate words.Dima Dorfman2001-06-241-2/+2
| | | | Notes: svn path=/head/; revision=78686
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* Help standalone builds by getting libutil.h from src/lib/libutilPeter Wemm2001-03-211-1/+1
| | | | Notes: svn path=/head/; revision=74607
* mdoc(7) police: ``It'' macro does not take argument in -enum lists.Ruslan Ermilov2001-03-161-2/+2
| | | | | | | | | | (In -mdocNG, this only causes warning. In current implementation, it is fatal.) Pointy hat to: markm (for not checking stderr) Notes: svn path=/head/; revision=74339
* Add OpenBSD-style blowfish password hashing. This makes one lessMark Murray2001-03-114-7/+23
| | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=74106
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-291-2/+2
| | | | Notes: svn path=/head/; revision=70481
* Reflect rev 1.18 in crypt.c. Note that this section is somewhatPeter Wemm2000-12-281-3/+5
| | | | | | | mangled and could do with some word-smithing. Notes: svn path=/head/; revision=70422
* Hindsight is wonderful, but I got cold feet over the crypt(3) defaultPeter Wemm2000-12-281-5/+5
| | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=70421
* Merge into a single US-exportable libcrypt, which only providesPeter Wemm2000-12-284-114/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=70419
* logRuslan Ermilov2000-11-221-2/+3
| | | | Notes: svn path=/head/; revision=69026
* Still have to support libscrypt for now :( Add #defines to take DESBrian Feldman2000-08-241-0/+2
| | | | | | | out for it. Notes: svn path=/head/; revision=65053
* How did you sneak in...Brian Feldman2000-08-221-1/+1
| | | | Notes: svn path=/head/; revision=64919
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-08-224-17/+95
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=64918
* Oops, remove vestigial reference to SHS passwords.Kris Kennaway2000-04-221-3/+2
| | | | Notes: svn path=/head/; revision=59524
* Introduce .Lb macro to libcrypt manpage.Alexey Zelkin2000-04-221-19/+54
| | | | | | | | | | 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 Notes: svn path=/head/; revision=59504
* A bunch of factual corrections.Mark Murray2000-01-181-7/+4
| | | | Notes: svn path=/head/; revision=56251
* Fixed missing include in synopsis.Bruce Evans2000-01-131-0/+1
| | | | Notes: svn path=/head/; revision=55897
* Zap SHA1 password support. This will be re-implemented at a later date.Kris Kennaway2000-01-074-195/+2
| | | | Notes: svn path=/head/; revision=55535
* Fixed a formatting error in the prototype for crypt().Bruce Evans1999-12-231-2/+2
| | | | Notes: svn path=/head/; revision=55042
* Make a dlopen failure consistant with dlsym(). "Shouldn't happen."Peter Wemm1999-12-172-2/+6
| | | | Notes: svn path=/head/; revision=54753
* patch glitchPeter Wemm1999-12-171-3/+0
| | | | Notes: svn path=/head/; revision=54752
* Remove -lmd. Use dlopen() and dlsym() instead for calls to the MD5* andPeter Wemm1999-12-173-5/+91
| | | | | | | | SHA* routines so that callers of libcrypt are not exposed to the internal implementation. Notes: svn path=/head/; revision=54751
* Never return NULL, always return a hash.Mark Murray1999-09-221-1/+1
| | | | | | | Submitted by: dt Notes: svn path=/head/; revision=51538
* Someone changed major numbers of the libraries from 2 to 3 for 0 (zero) reasons.Dmitrij Tejblum1999-09-211-1/+1
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=51510
* Somebody deleted the SONAME override causing the symlink to be expandedPeter Wemm1999-09-211-0/+4
| | | | | | | | at link time and the target name compiled into the binaries. ie: everything used libscrypt or libdescrypt explicitly. Notes: svn path=/head/; revision=51505
* Big code cleanup. (Inspired by Brandon Gillespie). Also move asMark Murray1999-09-207-157/+644
| | | | | | | much as possible away from secure/ to make extending easier. Notes: svn path=/head/; revision=51462
* $Header$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50488
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-3/+3
| | | | Notes: svn path=/head/; revision=50476
* Simplified using new SYMLINKS macro, mainly to test this macro. TheBruce Evans1999-03-231-26/+15
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=44947
* Fix symlinking. Without the -f "force" option, the wrong versionMark Murray1999-01-241-4/+4
| | | | | | | | can be found. Submitted by: Bruce Notes: svn path=/head/; revision=43152