summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-12-19 01:24:16 -0600
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-12-22 13:59:24 +0100
commit4c24dabb9cea4c8148d7a7efc7a1df694424c483 (patch)
treeae1bedb28f62aef846c8c34463704d4aebfe609a /extra
parent40c426ae8f032d794d15f4a7fca8dc17cdc9899d (diff)
libcrypt: add support for SHA512-CRYPT password hashing
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>
Diffstat (limited to 'extra')
-rw-r--r--extra/Configs/Config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 97aafb789..bbde976d0 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -1174,6 +1174,13 @@ config UCLIBC_HAS_CRYPT_IMPL
help
libcrypt contains crypt(), setkey() and encrypt()
+config UCLIBC_HAS_SHA512_CRYPT_IMPL
+ bool "libcrypt SHA512 support"
+ depends on UCLIBC_HAS_CRYPT_IMPL
+ help
+ This adds support for SHA512 password hashing via the crypt() function.
+ Say N here if you do not need SHA512 crypt support.
+
config UCLIBC_HAS_CRYPT_STUB
bool "libcrypt stubs"
default y