We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c2c3c commit 6617266Copy full SHA for 6617266
win32/fcrypt.c
@@ -466,12 +466,10 @@ unsigned const char cov_2char[64]={
466
};
467
468
/* the salt for classic DES crypt (which is all we implement here)
469
- permits [./0-9A-Za-z], since '.' and '/' immediately precede
470
- '0' we don't need individual checks for '.' and '/'
+ permits [./0-9A-Za-z], since '.' and '/' are adjacent, we don't need
+ individual checks for them
471
*/
472
-#define good_for_salt(c) \
473
- ((c) >= '.' && (c) <= '9' || (c) >= 'A' && (c) <= 'Z' || \
474
- (c) >= 'a' && (c) <= 'z')
+#define good_for_salt(c) (isALPHANUMERIC(c) || inRANGE((c), '.', '/'))
475
476
char *
477
des_fcrypt(const char *buf, const char *salt, char *buff)
0 commit comments