Add sha256/512 support to libcrypt, change default
[dragonfly.git] / lib / libcrypt / crypt.c
index 4d16ff1..764afab 100644 (file)
@@ -56,6 +56,16 @@ static const struct {
                "$2"
        },
 #endif
+       {
+               "sha256",
+               crypt_sha256,
+               "$3$"
+       },
+       {
+               "sha512",
+               crypt_sha512,
+               "$4$"
+       },
        {
                NULL,
                NULL