implemented getFlags function
This commit is contained in:
parent
307642272e
commit
e49f56f288
@ -19,19 +19,19 @@ outputFlags decryptText(char *text, char *keyNew)
|
||||
gettimeofday(&startTime, NULL);
|
||||
|
||||
//CHECK FOR ACTIVE VERSION
|
||||
if ((checkExitCode = checkVersion(flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkVersion(getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
|
||||
//CHECK FOR INVALID text
|
||||
if ((checkExitCode = checkText(text, flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkText(text, getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
|
||||
//CHECK FOR INVALID key
|
||||
if ((checkExitCode = checkKey(keyNew, flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkKey(keyNew, getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
|
@ -20,13 +20,13 @@ outputFlags encryptText(char *text, char *keyNew)
|
||||
gettimeofday(&startTime, NULL);
|
||||
|
||||
//CHECK FOR ACTIVE VERSION
|
||||
if ((checkExitCode = checkVersion(flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkVersion(getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
|
||||
//CHECK FOR INVALID text
|
||||
if ((checkExitCode = checkText(text, flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkText(text, getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
@ -49,7 +49,7 @@ outputFlags encryptText(char *text, char *keyNew)
|
||||
if (keyNew != NULL)
|
||||
{
|
||||
//CHECK FOR INVALID key
|
||||
if ((checkExitCode = checkKey(keyNew, flags)) != SUCCESS)
|
||||
if ((checkExitCode = checkKey(keyNew, getFlags())) != SUCCESS)
|
||||
{
|
||||
return noOutput(checkExitCode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user