From db1c3e143d29dec6803f4ced4c95d172eb99f0b4 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Mon, 16 Feb 2026 02:22:27 +0100 Subject: [PATCH] mkpasswd: rename bcrypt-a and gost-yescrypt Let's use the same names listed in libxcrypt's crypt(5). I highly doubt that anybody uses these names, so I am not adding compatibility aliases. --- mkpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkpasswd.c b/mkpasswd.c index 0f76753..27a804e 100644 --- a/mkpasswd.c +++ b/mkpasswd.c @@ -111,7 +111,7 @@ static const struct crypt_method methods[] = { #endif #ifdef HAVE_BCRYPT { "bcrypt", "$2b$", 22, 22, 2, "bcrypt" }, - { "bcrypt-a", "$2a$", 22, 22, 2, "bcrypt (obsolete $2a$ version)" }, + { "bcrypt_a", "$2a$", 22, 22, 2, "bcrypt (obsolete $2a$ version)" }, #endif #if defined HAVE_SHA_CRYPT /* http://people.redhat.com/drepper/SHA-crypt.txt */ @@ -143,7 +143,7 @@ static const struct crypt_method methods[] = { { "sm3_yescrypt", "$sm3y$", 0, 0, 1, "ShangMi 3 Yescrypt" }, #endif #if XCRYPT_VERSION_NUM >= ((4 << 16) | 4) - { "gost-yescrypt", "$gy$", 0, 0, 1, "GOST Yescrypt" }, + { "gost_yescrypt", "$gy$", 0, 0, 1, "GOST Yescrypt" }, #endif #if defined FreeBSD || defined XCRYPT_VERSION_NUM { "nt", "$3$", 0, 0, 0, "NT-Hash" },