added missing flags implementation
This commit is contained in:
parent
5c45e2c5b5
commit
efab8647a8
@ -12,7 +12,7 @@ outputFlags decryptText(char *text, char *key, inputFlags flags)
|
|||||||
//CHECK FOR INVALID key
|
//CHECK FOR INVALID key
|
||||||
if (strlen(key) < getKeyLength())
|
if (strlen(key) < getKeyLength())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Key must be at least %d characters long!\n", getKeyLength());
|
if (!flags.noOutput) fprintf(stderr, "Key must be at least %d characters long!\n", getKeyLength());
|
||||||
exit(INVALID_KEY);
|
exit(INVALID_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
|
|||||||
{
|
{
|
||||||
if (strlen(keyNew) < getKeyLength())
|
if (strlen(keyNew) < getKeyLength())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Key must be at least %d characters long!\n", getKeyLength());
|
if (!flags.noOutput) fprintf(stderr, "Key must be at least %d characters long!\n", getKeyLength());
|
||||||
exit(INVALID_KEY);
|
exit(INVALID_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user