summaryrefslogtreecommitdiff
path: root/libcrypt
AgeCommit message (Collapse)Author
2015-03-24libcrypt: Rename some internal macrosBernhard Reutner-Fischer
to avoid clashes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-01-19libcrypt: return NULL on unsupported saltBernhard Reutner-Fischer
BZ #7808 asks us not to fallback to DES if the optional SHA are disabled but requested by the user. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-11-18Replace FSF snail mail address with URLsMike Frysinger
This matches a similar change made to glibc. No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-06-15remove __FORCE_GLIBCPeter S. Mazinger
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18libcrypt: shrink crypt() again - unmodulariseBernhard Reutner-Fischer
modularisation added too much bloat for no benefit, undo. $ ../busybox/scripts/bloat-o-meter .lib.05/libcrypt-0.9.33-rc1-git.so lib/libcrypt-0.9.33-rc1-git.so function old new delta crypt 130 46 -84 .rodata 2704 - -2704 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-2788) Total: -2788 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-12-22libcrypt: add support for SHA256-CRYPT password hashingWilliam Pitcock
This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA256_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-12-22libcrypt: add support for SHA512-CRYPT password hashingWilliam Pitcock
This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA512_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-12-22libcrypt: make crypt() itself more modularWilliam Pitcock
By using a function table, we can more cleanly support new crypt implementations, such as SHA256 ($5$) and SHA512 ($6$). Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-20libcrypt: do not cast away const of key/saltMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-05Add Makefile support for DSBT ELF.Bernd Schmidt bernds_cb1@t-online.de
This adds support for a new binary format, DSBT ELF, to the Makefiles. Every shared library is assigned a DSBT index, and the link.so macro is adjusted to ensure the correct linker argument is passed. Configuration and ldso support will follow in separate commits. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-04-22nptl: proper soname handlingNatanael Copa
Since sublevel releases are not ABI compatible we need to adjust the soname to include the sublevel version. This makes it possible to install ABI incompatible versions of the library side by side so clean upgrades are possible. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-03-25prettify make cleanBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-10-07resolv/crypt: convert to foo-y kbuild styleMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-09-06md5 passwords: reduce static usageDenys Vlasenko
text data bss dec hex filename - 1875 0 120 1995 7cb libcrypt/md5.o + 1855 0 35 1890 762 libcrypt/md5.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-17support building out-of-treeBernhard Reutner-Fischer
Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2008-12-01rpc: ifdef out xdrrec_{get,put}long if int32 == long,Denis Vlasenko
otherwise use xdrrec_{get,put}int32 + trivial transform. eliminate warnings. des: small shrink + eliminate a warning
2008-11-07- less verbose make cleanBernhard Reutner-Fischer
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-06-17- move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer
2008-06-13des: des_setkey always returns 0, there is no pointDenis Vlasenko
in checking whether it returns 1. text data bss dec hex filename - 4283 0 70209 74492 122fc libcrypt/des.o + 4273 0 70209 74482 122f2 libcrypt/des.o
2008-06-12remove a trivial comment. no code changesDenis Vlasenko
2008-06-11libcrypt/md5.c:Denis Vlasenko
Make sp, ep and p variables automatic. There is no point in having them static, they never use their values retained from previous call. Replace strlen(__md5__magic) etc by compile-time constants. text data bss dec hex filename - 1957 0 132 2089 829 libcrypt/md5.o + 1905 0 120 2025 7e9 libcrypt/md5.o
2008-06-10Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt
__uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
2008-06-10Revert revision 19342, plus one whitespace fix demanded by the pre-commitBernd Schmidt
hook.
2008-06-05- make libcrypt optional. Untested.Bernhard Reutner-Fischer
2008-06-04- strip the targets and not prerequisitesBernhard Reutner-Fischer
- tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
2008-06-01A slight improvement over my previous commit which ensured we always rebuildBernd Schmidt
libc when one of the source files changes. Since there are more places which want to depend on $(libc), fix them all to use a new variable $(libc.depend), which contains the filename for which we have a rule.
2008-05-20- remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer
2008-01-05whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger
2007-07-30make getnetent.c, md5.c use __uc_mallocDenis Vlasenko
2007-07-30patch #3: make resolv.c use __uc_mallocDenis Vlasenko
2007-07-30convert des.c to use __uc_malloc (-70 kbytes of bss)Denis Vlasenko
2007-07-18des.c: move 0.5k of static data on stack, they are used only temporarilyDenis Vlasenko
by des_init.
2007-03-19#1273 if EXTRAVERSION is set, make sure we respect itMike Frysinger
2006-08-24fix by Bernhard Fischer to move local prototypes to a header to keep things saneMike Frysinger
2006-07-05fixup my copyright notice, trim stale remnants of older notices whichEric Andersen
I had clearly run search/replace on that were cluttering things up.
2006-07-05fixup my copyright notice, trim stale remnants of older notices whichEric Andersen
I had clearly run search/replace on that were cluttering things up.
2006-03-08kill off gcc signed warningsMike Frysinger
2006-02-15DOMULTI may be used for libc, the excluded files need work, ↵Peter S. Mazinger
linuxthreads[_db] as well, don't try on slow box
2006-01-29rename index variable to idx to "fix" shadow warningMike Frysinger
2006-01-26Some more prototypes, enable missing-prototypes/declarations warnings for nowPeter S. Mazinger
2006-01-26Get rid of missing prototype warningsPeter S. Mazinger
2006-01-19Add multi support to libm, remove lib*-multi-y, unneededPeter S. Mazinger
2006-01-18Add target strip command and use it, also disable for now CFLAGS-multi-y, ↵Peter S. Mazinger
after splitting all MSRC, it won't be needed
2006-01-18Add IMA build rulesPeter S. Mazinger
2006-01-16Update licensePeter S. Mazinger
2005-12-27fix salt type in setup_salt()Mike Frysinger
2005-12-13Hidden __md5_crypt/__des_crypt, missed to adapt prototypePeter S. Mazinger
2005-11-23import license updates from glibcMike Frysinger
2005-11-22Depedencies corrected (less make oldconfig/headers), rerunning make remakes ↵Peter S. Mazinger
only headers