[Pkg-shadow-commits] r1439 - upstream/trunk/lib
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Thu Nov 22 09:27:51 UTC 2007
Author: nekral-guest
Date: 2007-11-22 09:27:51 +0000 (Thu, 22 Nov 2007)
New Revision: 1439
Modified:
upstream/trunk/lib/encrypt.c
Log:
Remove chunk that should not have been committed.
Modified: upstream/trunk/lib/encrypt.c
===================================================================
--- upstream/trunk/lib/encrypt.c 2007-11-22 00:16:36 UTC (rev 1438)
+++ upstream/trunk/lib/encrypt.c 2007-11-22 09:27:51 UTC (rev 1439)
@@ -49,29 +49,6 @@
perror ("crypt");
exit (1);
}
- if (salt && salt[0] == '$' && strlen (cp) <= 13)
- {
- /* The crypt algorithm was not recognized by libcrypt */
- char *method = "$1$";
- switch (salt[1])
- {
- case '1':
- method = "MD5";
- break;
- case '5':
- method = "SHA256";
- break;
- case '6':
- method = "SHA512";
- break;
- default:
- method[1] = salt[1];
- }
- fprintf (stderr,
- _("Unknown crypt method (%s)\n"),
- method);
- exit (1);
- }
if (strlen (cp) != 13)
return cp; /* nonstandard crypt() in libc, better bail out */
strcpy (cipher, cp);
More information about the Pkg-shadow-commits
mailing list