You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
passwd/SOURCES/0001-Added-support-displain...

43 lines
1.2 KiB

From e4747f56c843f080373abe876f097849b58201d4 Mon Sep 17 00:00:00 2001
From: Alexey Berezhok <aberezhok@msvsphere-os.ru>
Date: Thu, 8 Feb 2024 18:12:15 +0300
Subject: [PATCH] Added support displaing of GOST Yescrypt
---
libuser.c | 3 +++
po/ru.po | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/libuser.c b/libuser.c
index 06c6200..a37ba66 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, "$gy$", 4) ==
+ 0) {
+ msg = _("Password set, GOST Yescrypt crypt.");
} else {
msg = _("Password set, unknown crypt variant.");
}
diff --git a/po/ru.po b/po/ru.po
index 01c8fae..d65826c 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -67,6 +67,10 @@ msgstr "Пароль задан, шифр SHA256"
msgid "Password set, SHA512 crypt."
msgstr "Пароль задан, шифр SHA512"
+#: libuser.c:305
+msgid "Password set, GOST Yescrypt crypt."
+msgstr "Пароль задан, шифр GOST Yescrypt"
+
#: libuser.c:302
msgid "Password set, unknown crypt variant."
msgstr "Пароль задан, шифр неизвестен"
--
2.43.0