Merged chkpwr to chkusr and moved defines to config.h.

This commit is contained in:
Johannes Findeisen 2025-09-08 02:34:46 +02:00
commit 71555fc275
12 changed files with 171 additions and 51 deletions

50
config.h Normal file
View file

@ -0,0 +1,50 @@
#define VERSION "1.5.0"
/* For chkgrp */
#ifndef MAX_LINE
#define MAX_LINE 1024
#endif
/* MAX_NAME is also used by chkpwd */
#ifndef MAX_NAME
#define MAX_NAME 256
#endif
/* For chkpwd */
#ifndef MAX_PASSWORD
#define MAX_PASSWORD 256
#endif
#ifndef MAX_UID
#define MAX_UID 1000
#endif
#ifndef MIN_UID
#define MIN_UID 1000
#endif
/* For chkpwr */
#ifndef MAX_PASSWORD_LENGTH
#define MAX_PASSWORD_LENGTH 32
#endif
#ifndef MIN_PASSWORD_LENGTH
#define MIN_PASSWORD_LENGTH 12
#endif
#ifndef MIN_LOWERCASE
#define MIN_LOWERCASE 2
#endif
#ifndef MIN_UPPERCASE
#define MIN_UPPERCASE 2
#endif
#ifndef MIN_DIGITS
#define MIN_DIGITS 2
#endif
#ifndef MIN_SPECIAL
#define MIN_SPECIAL 2
#endif