svn commit: r261913 - head/lib/libcrypt

Dag-Erling Smørgrav des at FreeBSD.org
Sat Feb 15 10:53:44 UTC 2014


Author: des
Date: Sat Feb 15 10:53:44 2014
New Revision: 261913
URL: http://svnweb.freebsd.org/changeset/base/261913

Log:
  Switch the hardcoded default hash function from MD5 / DES to SHA512.

Modified:
  head/lib/libcrypt/crypt.c

Modified: head/lib/libcrypt/crypt.c
==============================================================================
--- head/lib/libcrypt/crypt.c	Sat Feb 15 08:23:31 2014	(r261912)
+++ head/lib/libcrypt/crypt.c	Sat Feb 15 10:53:44 2014	(r261913)
@@ -79,11 +79,7 @@ static const struct {
 	}
 };
 
-#ifdef HAS_DES
-#define CRYPT_DEFAULT	"des"
-#else
-#define CRYPT_DEFAULT	"md5"
-#endif
+#define CRYPT_DEFAULT	"sha512"
 
 static int crypt_type = -1;
 


More information about the svn-src-all mailing list