summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2019-06-17 16:26:15 +0200
committerMarco d'Itri <md@linux.it>2019-06-23 15:40:12 +0200
commit2b78ca68dfc0565d5f4c873f038f38d0048f86a7 (patch)
treeeefcb8db0fce46ad2b279950b75b0e282f76fead
parent830c3e3a7c1379d0fac48911611c2f607d1fe4a7 (diff)
downloadwhois-2b78ca68dfc0565d5f4c873f038f38d0048f86a7.tar.gz
mkpasswd: support the "gost-yescrypt" hash
-rw-r--r--mkpasswd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkpasswd.c b/mkpasswd.c
index f124556..4189c39 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -98,6 +98,9 @@ static const struct crypt_method methods[] = {
{ "md5", "$1$", 8, 8, 0, NULL },
#if defined XCRYPT_VERSION_NUM
{ "yescrypt", "$y$", 0, 0, 0, "Yescrypt" },
+#if XCRYPT_VERSION_NUM >= ((4 << 16) | 4)
+ { "gost-yescrypt", "$gy$", 0, 0, 0, "GOST Yescrypt" },
+#endif
{ "scrypt", "$7$", 0, 0, 0, "scrypt" },
#endif
#ifdef HAVE_BCRYPT_OBSOLETE