OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcrypt: add support for SHA256-CRYPT password hashing
[uclinux-h8/uClibc.git]
/
libcrypt
/
crypt.c
diff --git
a/libcrypt/crypt.c
b/libcrypt/crypt.c
index
b5bf9ee
..
188a6a0
100644
(file)
--- a/
libcrypt/crypt.c
+++ b/
libcrypt/crypt.c
@@
-19,6
+19,9
@@
static const struct {
const crypt_impl_f crypt_impl;
} crypt_impl_tab[] = {
{ "$1$", __md5_crypt },
+#ifdef __UCLIBC_HAS_SHA256_CRYPT_IMPL__
+ { "$5$", __sha256_crypt },
+#endif
#ifdef __UCLIBC_HAS_SHA512_CRYPT_IMPL__
{ "$6$", __sha512_crypt },
#endif