aboutsummaryrefslogtreecommitdiffstats
path: root/community/whois/enable-sha256-sha512-mkpasswd.patch
blob: 643438390caa3aaf01db69fd6ffda943ec6e2849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -upr whois-5.4.0.orig/mkpasswd.c whois-5.4.0/mkpasswd.c
--- whois-5.4.0.orig/mkpasswd.c	2018-11-03 11:37:41.579032463 +0100
+++ whois-5.4.0/mkpasswd.c	2018-11-03 11:37:47.892515510 +0100
@@ -108,14 +108,12 @@ static const struct crypt_method methods
     { "bcrypt",		"$2b$", 22,	22,	2, "bcrypt" },
     { "bcrypt-a",	"$2a$", 22,	22,	2, "bcrypt (obsolete $2a$ version)" },
 #endif
-#if defined HAVE_SHA_CRYPT
     /* http://people.redhat.com/drepper/SHA-crypt.txt */
     { "sha512crypt",	"$6$",	8,	16,	1, "SHA-512" },
     { "sha256crypt",	"$5$",	8,	16,	1, "SHA-256" },
     /* compatibility aliases for mkpasswd versions < 5.4.0 */
     { "sha-256",	"$5$",	8,	16,	1, NULL },
     { "sha-512",	"$6$",	8,	16,	1, NULL },
-#endif
 #if (defined __SVR4 && defined __sun) || defined XCRYPT_VERSION_NUM
     { "sunmd5",		"$md5$", 8,	8,	1, "SunMD5" },
 #endif