From 976d077e338a2e3041b3e774fad0e430d2c5bf0b Mon Sep 17 00:00:00 2001 From: xiaoxiao zheng Date: Sep 05 2022 14:39:23 +0000 Subject: add sm3 crypt support --- diff --git a/libuser.c b/libuser.c index 06c6200..8a80bb9 100644 --- a/libuser.c +++ b/libuser.c @@ -300,6 +300,9 @@ pwdb_display_status(const char *username) } else if (strncmp(current, "$6$", 3) == 0) { msg = _("Password set, SHA512 crypt."); + } else if (strncmp(current, "$sm3$", 5) == + 0) { + msg = _("Password set, SM3 crypt."); } else { msg = _("Password set, unknown crypt variant."); }