OSDN Git Service

libcrypt: add support for SHA256-CRYPT password hashing
[uclinux-h8/uClibc.git] / libcrypt / crypt.c
index b5bf9ee..188a6a0 100644 (file)
@@ -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