[Midnightbsd-cvs] src [12151] trunk/secure/lib/libcrypt/crypt-blowfish.c: add y flag

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Jan 20 00:37:32 EST 2019


Revision: 12151
          http://svnweb.midnightbsd.org/src/?rev=12151
Author:   laffer1
Date:     2019-01-20 00:37:14 -0500 (Sun, 20 Jan 2019)
Log Message:
-----------
add y flag

Modified Paths:
--------------
    trunk/secure/lib/libcrypt/crypt-blowfish.c

Modified: trunk/secure/lib/libcrypt/crypt-blowfish.c
===================================================================
--- trunk/secure/lib/libcrypt/crypt-blowfish.c	2019-01-20 05:37:00 UTC (rev 12150)
+++ trunk/secure/lib/libcrypt/crypt-blowfish.c	2019-01-20 05:37:14 UTC (rev 12151)
@@ -168,6 +168,9 @@
 			 switch (salt[1]) {
 			 case 'a':	/* 'ab' should not yield the same as 'abab' */
 			 case 'b':	/* cap input length at 72 bytes */
+			 case 'y':	/* same as 'b', for compatibility
+					 * with openwall crypt_blowfish
+					 */
 				 minr = salt[1];
 				 salt++;
 				 break;



More information about the Midnightbsd-cvs mailing list