implemented decryptedOutput in logger-test
This commit is contained in:
parent
07c787b22e
commit
91435a29c8
@ -27,7 +27,7 @@ int main(void)
|
|||||||
//VARIABLES
|
//VARIABLES
|
||||||
logFile logger = initLogger(WRITE_DIR); //INITIALIZE LOGGER FILE
|
logFile logger = initLogger(WRITE_DIR); //INITIALIZE LOGGER FILE
|
||||||
char *usedKey = malloc(getKeyLength() + 1);
|
char *usedKey = malloc(getKeyLength() + 1);
|
||||||
char **decrypted;
|
decryptedOutput decrypted;
|
||||||
int exitCode = 0;
|
int exitCode = 0;
|
||||||
|
|
||||||
//GENERATE KEY
|
//GENERATE KEY
|
||||||
@ -50,7 +50,7 @@ int main(void)
|
|||||||
decrypted = decryptLogger(logger); //DECRYPT
|
decrypted = decryptLogger(logger); //DECRYPT
|
||||||
|
|
||||||
//COMPARE OUTPUT
|
//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");
|
printf("TEST SUCCESSFUL!\n");
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user