From 3412ebd8d39fcc9c04fff5b0fa3b1606e61ea6fb Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Jun 2022 17:06:44 +0200 Subject: [PATCH] implemeted the new integer types of check functions in decrypter didn't expect this, right? lmao --- src/lib/decrypter.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index c1e60e4..252ba9c 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -10,19 +10,31 @@ outputFlags decryptText(char *text, char *keyNew, inputFlags flags) { + //CHECK VARIABLE + int checkExitCode; + //TIME VARIABLES struct timeval startTime; struct timeval finishTime; gettimeofday(&startTime, NULL); //CHECK FOR ACTIVE VERSION - checkVersion(flags); + if ((checkExitCode = checkVersion(flags)) != SUCCESS) + { + return noOutput(checkExitCode); + } //CHECK FOR INVALID text - checkText(text, flags); + if ((checkExitCode = checkText(text, flags)) != SUCCESS) + { + return noOutput(checkExitCode); + } //CHECK FOR INVALID key - checkKey(keyNew, flags); + if ((checkExitCode = checkKey(keyNew, flags)) != SUCCESS) + { + return noOutput(checkExitCode); + } //REDEFINE keyLength setKeyLength(strlen(keyNew));