implemeted the new integer types of check functions in decrypter
didn't expect this, right? lmao
This commit is contained in:
parent
e036359677
commit
3412ebd8d3
@ -10,19 +10,31 @@
|
|||||||
|
|
||||||
outputFlags decryptText(char *text, char *keyNew, inputFlags flags)
|
outputFlags decryptText(char *text, char *keyNew, inputFlags flags)
|
||||||
{
|
{
|
||||||
|
//CHECK VARIABLE
|
||||||
|
int checkExitCode;
|
||||||
|
|
||||||
//TIME VARIABLES
|
//TIME VARIABLES
|
||||||
struct timeval startTime;
|
struct timeval startTime;
|
||||||
struct timeval finishTime;
|
struct timeval finishTime;
|
||||||
gettimeofday(&startTime, NULL);
|
gettimeofday(&startTime, NULL);
|
||||||
|
|
||||||
//CHECK FOR ACTIVE VERSION
|
//CHECK FOR ACTIVE VERSION
|
||||||
checkVersion(flags);
|
if ((checkExitCode = checkVersion(flags)) != SUCCESS)
|
||||||
|
{
|
||||||
|
return noOutput(checkExitCode);
|
||||||
|
}
|
||||||
|
|
||||||
//CHECK FOR INVALID text
|
//CHECK FOR INVALID text
|
||||||
checkText(text, flags);
|
if ((checkExitCode = checkText(text, flags)) != SUCCESS)
|
||||||
|
{
|
||||||
|
return noOutput(checkExitCode);
|
||||||
|
}
|
||||||
|
|
||||||
//CHECK FOR INVALID key
|
//CHECK FOR INVALID key
|
||||||
checkKey(keyNew, flags);
|
if ((checkExitCode = checkKey(keyNew, flags)) != SUCCESS)
|
||||||
|
{
|
||||||
|
return noOutput(checkExitCode);
|
||||||
|
}
|
||||||
|
|
||||||
//REDEFINE keyLength
|
//REDEFINE keyLength
|
||||||
setKeyLength(strlen(keyNew));
|
setKeyLength(strlen(keyNew));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user