diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-12-19 01:25:09 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-23 15:49:02 +0100 |
commit | 243a437f9345fd7182bb4b2f60d892cc86794e8d (patch) | |
tree | fce5b1205b8b697549385620d0baa87e6b5147d4 /extra/Configs/Config.in | |
parent | 0b68c872deb676b0cb104bfb30a1f356072b5edf (diff) | |
download | uClibc-alpine-243a437f9345fd7182bb4b2f60d892cc86794e8d.tar.bz2 uClibc-alpine-243a437f9345fd7182bb4b2f60d892cc86794e8d.tar.xz |
libcrypt: add support for SHA256-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_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)
Diffstat (limited to 'extra/Configs/Config.in')
-rw-r--r-- | extra/Configs/Config.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index eec3ee90e..66e4efb97 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -1137,6 +1137,13 @@ config UCLIBC_HAS_CRYPT_IMPL help libcrypt contains crypt(), setkey() and encrypt() +config UCLIBC_HAS_SHA256_CRYPT_IMPL + bool "libcrypt SHA256 support" + depends on UCLIBC_HAS_CRYPT_IMPL + help + This adds support for SHA256 password hashing via the crypt() function. + Say N here if you do not need SHA256 crypt support. + config UCLIBC_HAS_SHA512_CRYPT_IMPL bool "libcrypt SHA512 support" depends on UCLIBC_HAS_CRYPT_IMPL |