created getter & setter for keyLength (replacement for KEY_LENGTH)
This commit is contained in:
parent
d194526fc8
commit
e85a14b253
@ -2,7 +2,6 @@
|
||||
#define WHY2_FLAGS_H
|
||||
|
||||
//CONSTS
|
||||
#define KEY_LENGTH 50
|
||||
#define ENCRYPTION_SEPARATOR '.'
|
||||
#define ENCRYPTION_SEPARATOR_STRING "."
|
||||
|
||||
@ -13,10 +12,14 @@
|
||||
#define VERSIONS_NAME "versions.json"
|
||||
|
||||
//VARIABLES
|
||||
static int keyLength = 50;
|
||||
static int skipCheck = 0;
|
||||
|
||||
//FUNCTIONS
|
||||
int getSkipCheck();
|
||||
void setSkipCheck(int skipCheckNew);
|
||||
|
||||
int getKeyLength();
|
||||
void setKeyLength(int keyLengthNew);
|
||||
|
||||
#endif
|
||||
|
10
src/flags.c
10
src/flags.c
@ -8,4 +8,14 @@ int getSkipCheck()
|
||||
void setSkipCheck(int skipCheckNew)
|
||||
{
|
||||
skipCheck = skipCheckNew;
|
||||
}
|
||||
|
||||
int getKeyLength()
|
||||
{
|
||||
return keyLength;
|
||||
}
|
||||
|
||||
void setKeyLength(int keyLengthNew)
|
||||
{
|
||||
keyLength = keyLengthNew;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user