From 91435a29c8ba3d1b63ae209df3c580fa68207417 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 25 Jan 2023 14:17:18 +0100 Subject: [PATCH] implemented decryptedOutput in logger-test --- src/logger/lib/test/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger/lib/test/main.c b/src/logger/lib/test/main.c index 5f50193..c093f11 100644 --- a/src/logger/lib/test/main.c +++ b/src/logger/lib/test/main.c @@ -27,7 +27,7 @@ int main(void) //VARIABLES logFile logger = initLogger(WRITE_DIR); //INITIALIZE LOGGER FILE char *usedKey = malloc(getKeyLength() + 1); - char **decrypted; + decryptedOutput decrypted; int exitCode = 0; //GENERATE KEY @@ -50,7 +50,7 @@ int main(void) decrypted = decryptLogger(logger); //DECRYPT //COMPARE OUTPUT - if (strcmp(decrypted[0], WRITE_MESSAGE_1) == 0) //SUCCESS + if (strcmp(decrypted.decryptedText[0], WRITE_MESSAGE_1) == 0) //SUCCESS { printf("TEST SUCCESSFUL!\n"); } else