37 lines
1003 B
C
37 lines
1003 B
C
/* user and group to drop privileges to */
|
|
static const char *user = "nobody";
|
|
static const char *group = "nogroup";
|
|
|
|
static const char *colorname[NUMCOLS] = {
|
|
[INIT] = "black", /* after initialization */
|
|
[INPUT] = "#005577", /* during input */
|
|
[FAILED] = "#CC3333", /* wrong password */
|
|
};
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
static const int failonclear = 1;
|
|
|
|
/* length of entires in scom */
|
|
#define entrylen 1
|
|
|
|
static const secretpass scom[entrylen] = {
|
|
/* password command */
|
|
{ "shutdown", "doas shutdown -h now" },
|
|
};
|
|
|
|
/* number of failed password attempts until failcommand is executed.
|
|
Set to 0 to disable */
|
|
static const int failcount = 0;
|
|
|
|
/* command to be executed after [failcount] failed password attempts */
|
|
static const char *failcommand = "shutdown";
|
|
|
|
/*Enable blur*/
|
|
#define BLUR
|
|
/*Set blur radius*/
|
|
static const int blurRadius=5;
|
|
/*Enable Pixelation*/
|
|
//#define PIXELATION
|
|
/*Set pixelation radius*/
|
|
static const int pixelSize=0;
|