PHP can now deal with 8 chars of salt pgsql-branch
authorMatthew Mondor <mmondor@pulsar-zone.net>
Fri, 16 Mar 2007 16:17:14 +0000 (16:17 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Fri, 16 Mar 2007 16:17:14 +0000 (16:17 +0000)
mmsoftware/mmpasswd/mmpasswd.c

index af96d8a..d998a4b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mmpasswd.c,v 1.6 2004/05/06 00:05:35 mmondor Exp $ */
+/* $Id: mmpasswd.c,v 1.6.6.1 2007/03/16 16:17:14 mmondor Exp $ */
 
 /*
  * Copyright (C) 2002-2004, Matthew Mondor
@@ -52,7 +52,7 @@
 
 MMCOPYRIGHT("@(#) Copyright (c) 2002-2004\n\
 \tMatthew Mondor. All rights reserved.\n");
-MMRCSID("$Id: mmpasswd.c,v 1.6 2004/05/06 00:05:35 mmondor Exp $");
+MMRCSID("$Id: mmpasswd.c,v 1.6.6.1 2007/03/16 16:17:14 mmondor Exp $");
 
 
 
@@ -68,10 +68,7 @@ MMRCSID("$Id: mmpasswd.c,v 1.6 2004/05/06 00:05:35 mmondor Exp $");
  */
 
 struct salt_md5 {
-    /* Restrict salt to 6 characters since PHP crypt() seems to have this
-     * limit.
-     */
-    char salt[7];
+    char salt[9];
 };
 
 struct hash_md5 {