implemented decryptedOutput in logger-test

This commit is contained in:
Václav Šmejkal 2023-01-25 14:17:18 +01:00
parent 07c787b22e
commit 91435a29c8
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -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