verify the complexity of
the new password and to verify the old password of user.cfg when changing the
password. I hope to present it to the community.
thanks
bit_cof...@163.com
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org
salt = xmalloc (arguments.saltlen);
@@ -160,8 +241,9 @@ main (int argc, char *argv[])
grub_util_error ("%s", _("passwords don't match"));
}
memset (pass2, 0, sizeof (pass2));
-
- if (grub_get_random (salt, arguments.saltlen))
+ if (arguments.salt != NULL)
+hextobyte(arguments.salt, salt, arguments.saltlen * 2);
+ else if (grub_get_random (salt, arguments.saltlen))
{
memset (pass1, 0, sizeof (pass1));
free (buf);
--
2.30.0
bit_cof...@163.com
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel