summaryrefslogtreecommitdiff
path: root/mkpasswd.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2019-07-18 04:47:38 +0200
committerMarco d'Itri <md@linux.it>2019-07-18 04:47:38 +0200
commit19eb4fa5ef21723ea0436b302b049eaadb987259 (patch)
tree95c82ffd0ed4022922380381e324b936621bc352 /mkpasswd.c
parent88f8a14a07dc6e36cd73c05d787ba5dbeba42c27 (diff)
downloadwhois-19eb4fa5ef21723ea0436b302b049eaadb987259.tar.gz
mkpasswd: move a forgotten comment to the right place
Diffstat (limited to 'mkpasswd.c')
-rw-r--r--mkpasswd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mkpasswd.c b/mkpasswd.c
index 1224f98..d32391e 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -120,6 +120,13 @@ static const struct crypt_method methods[] = {
{ "sha-512", "$6$", 8, 16, 1, NULL },
#endif
#if (defined __SVR4 && defined __sun) || defined XCRYPT_VERSION_NUM
+ /* http://www.crypticide.com/dropsafe/article/1389 */
+ /*
+ * Actually the maximum salt length is arbitrary, but Solaris by default
+ * always uses 8 characters:
+ * http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/ \
+ * usr/src/lib/crypt_modules/sunmd5/sunmd5.c#crypt_gensalt_impl
+ */
{ "sunmd5", "$md5$", 8, 8, 1, "SunMD5" },
#endif
{ "md5crypt", "$1$", 8, 8, 0, "MD5" },
@@ -132,13 +139,6 @@ static const struct crypt_method methods[] = {
#if defined FreeBSD || defined XCRYPT_VERSION_NUM
{ "nt", "$3$", 0, 0, 0, "NT-Hash" },
#endif
- /* http://www.crypticide.com/dropsafe/article/1389 */
- /*
- * Actually the maximum salt length is arbitrary, but Solaris by default
- * always uses 8 characters:
- * http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/ \
- * usr/src/lib/crypt_modules/sunmd5/sunmd5.c#crypt_gensalt_impl
- */
{ NULL, NULL, 0, 0, 0, NULL }
};