View | Details | Raw Unified | Return to bug 192277 | Differences between
and this patch

Collapse All | Expand All

(-)lib/libcrypt/crypt.c (-4 / +5 lines)
Lines 46-54 static const struct crypt_format { Link Here
46
	const char *const magic;
46
	const char *const magic;
47
} crypt_formats[] = {
47
} crypt_formats[] = {
48
	/* default format */
48
	/* default format */
49
#ifdef HAS_DES
50
	{ "des",	crypt_des,		"_"	},
51
#endif
52
53
	/* other supported formats */
49
	{ "sha512",	crypt_sha512,		"$6$"	},
54
	{ "sha512",	crypt_sha512,		"$6$"	},
50
55
51
	/* other supported formats */
52
	{ "md5",	crypt_md5,		"$1$"	},
56
	{ "md5",	crypt_md5,		"$1$"	},
53
#ifdef HAS_BLOWFISH
57
#ifdef HAS_BLOWFISH
54
	{ "blf",	crypt_blowfish,		"$2"	},
58
	{ "blf",	crypt_blowfish,		"$2"	},
Lines 55-63 static const struct crypt_format { Link Here
55
#endif
59
#endif
56
	{ "nth",	crypt_nthash,		"$3$"	},
60
	{ "nth",	crypt_nthash,		"$3$"	},
57
	{ "sha256",	crypt_sha256,		"$5$"	},
61
	{ "sha256",	crypt_sha256,		"$5$"	},
58
#ifdef HAS_DES
59
	{ "des",	crypt_des,		"_"	},
60
#endif
61
62
62
	/* sentinel */
63
	/* sentinel */
63
	{ NULL,		NULL,			NULL	}
64
	{ NULL,		NULL,			NULL	}

Return to bug 192277