summaryrefslogtreecommitdiffstats
path: root/libcrypt
Commit message (Collapse)AuthorAgeFilesLines
* crypt: build fix. define ARRAY_SIZE macroHEAD0.9.32-alpineNatanael Copa2011-12-231-0/+2
| | | | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* libcrypt: add support for SHA256-CRYPT password hashingWilliam Pitcock2011-12-236-0/+684
| | | | | | | | | | | | | | | 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> (cherry picked from commit 3ac5fd7ecaeb6721d812c2b93e446bf9a31acdde)
* libcrypt: add support for SHA512-CRYPT password hashingWilliam Pitcock2011-12-236-0/+730
| | | | | | | | | | | | | | | 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> (cherry picked from commit 4c24dabb9cea4c8148d7a7efc7a1df694424c483)
* libcrypt: make crypt() itself more modularWilliam Pitcock2011-12-231-6/+24
| | | | | | | | | 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> (cherry picked from commit 40c426ae8f032d794d15f4a7fca8dc17cdc9899d)
* libcrypt: do not cast away const of key/saltMike Frysinger2011-12-231-2/+5
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> (cherry picked from commit 4a2b0641a3818ad14b886907368b6f6735615f6d)
* Add Makefile support for DSBT ELF.Bernd Schmidt bernds_cb1@t-online.de2011-03-051-0/+1
| | | | | | | | | | | 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>
* nptl: proper soname handlingNatanael Copa2010-04-221-2/+2
| | | | | | | | | | | 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>
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* resolv/crypt: convert to foo-y kbuild styleMike Frysinger2009-10-071-11/+6
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* md5 passwords: reduce static usageDenys Vlasenko2009-09-061-8/+11
| | | | | | | | 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>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* rpc: ifdef out xdrrec_{get,put}long if int32 == long,Denis Vlasenko2008-12-011-29/+13
| | | | | | | otherwise use xdrrec_{get,put}int32 + trivial transform. eliminate warnings. des: small shrink + eliminate a warning
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-2/+2
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-232-5/+5
|
* - move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer2008-06-171-3/+0
|
* des: des_setkey always returns 0, there is no pointDenis Vlasenko2008-06-131-7/+4
| | | | | | | | | 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
* remove a trivial comment. no code changesDenis Vlasenko2008-06-121-2/+0
|
* libcrypt/md5.c:Denis Vlasenko2008-06-111-9/+12
| | | | | | | | | | | | 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
* Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt2008-06-101-15/+8
| | | | | | __uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
* Revert revision 19342, plus one whitespace fix demanded by the pre-commitBernd Schmidt2008-06-101-80/+25
| | | | hook.
* - make libcrypt optional. Untested.Bernhard Reutner-Fischer2008-06-052-1/+40
|
* - strip the targets and not prerequisitesBernhard Reutner-Fischer2008-06-041-2/+2
| | | | | | - 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.
* A slight improvement over my previous commit which ensured we always rebuildBernd Schmidt2008-06-011-3/+3
| | | | | | | | | 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.
* - remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer2008-05-201-5/+1
|
* whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger2008-01-051-5/+5
|
* make getnetent.c, md5.c use __uc_mallocDenis Vlasenko2007-07-301-8/+15
|
* patch #3: make resolv.c use __uc_mallocDenis Vlasenko2007-07-301-0/+1
|
* convert des.c to use __uc_malloc (-70 kbytes of bss)Denis Vlasenko2007-07-301-25/+79
|
* des.c: move 0.5k of static data on stack, they are used only temporarilyDenis Vlasenko2007-07-181-4/+5
| | | | | by des_init.
* #1273 if EXTRAVERSION is set, make sure we respect itMike Frysinger2007-03-191-1/+1
|
* fix by Bernhard Fischer to move local prototypes to a header to keep things saneMike Frysinger2006-08-244-20/+29
|
* fixup my copyright notice, trim stale remnants of older notices whichEric Andersen2006-07-051-1/+0
| | | | I had clearly run search/replace on that were cluttering things up.
* fixup my copyright notice, trim stale remnants of older notices whichEric Andersen2006-07-051-5/+1
| | | | I had clearly run search/replace on that were cluttering things up.
* kill off gcc signed warningsMike Frysinger2006-03-081-4/+11
|
* DOMULTI may be used for libc, the excluded files need work, ↵Peter S. Mazinger2006-02-151-1/+1
| | | | linuxthreads[_db] as well, don't try on slow box
* rename index variable to idx to "fix" shadow warningMike Frysinger2006-01-291-9/+9
|
* Some more prototypes, enable missing-prototypes/declarations warnings for nowPeter S. Mazinger2006-01-261-1/+2
|
* Get rid of missing prototype warningsPeter S. Mazinger2006-01-261-1/+2
|
* Add multi support to libm, remove lib*-multi-y, unneededPeter S. Mazinger2006-01-191-2/+0
|
* Add target strip command and use it, also disable for now CFLAGS-multi-y, ↵Peter S. Mazinger2006-01-181-1/+1
| | | | after splitting all MSRC, it won't be needed
* Add IMA build rulesPeter S. Mazinger2006-01-181-2/+12
|
* Update licensePeter S. Mazinger2006-01-161-17/+4
|
* fix salt type in setup_salt()Mike Frysinger2005-12-271-1/+1
|
* Hidden __md5_crypt/__des_crypt, missed to adapt prototypePeter S. Mazinger2005-12-131-2/+2
|
* import license updates from glibcMike Frysinger2005-11-231-12/+12
|
* Depedencies corrected (less make oldconfig/headers), rerunning make remakes ↵Peter S. Mazinger2005-11-221-8/+10
| | | | only headers
* rework depends and stripping so that libraries arent rebuilt all the time in ↵Mike Frysinger2005-11-221-2/+4
| | | | a loop
* Hide __des_crypt/__md5_cryptPeter S. Mazinger2005-11-212-2/+2
|
* Remove TOPDIRPeter S. Mazinger2005-11-211-3/+1
|
* Add info to CFLAGS about lib we are buildingPeter S. Mazinger2005-11-181-1/+1
|