Trying to fix the issue where the server doesnt return the key.

This commit is contained in:
Afonso Clerigo Mendes de Sousa 2025-02-27 20:12:36 +00:00
parent e19555be6c
commit 94ab68aeb9
2 changed files with 2 additions and 19 deletions

Binary file not shown.

View File

@ -134,26 +134,9 @@ int main(void)
end_try; end_try;
// debug // debug
printf("Sending key: [%s]\n", buffer); printf("Sending key: [%x]\n", buffer[0]);
char *sendKEY = NULL; char sendKEY[256];
try
{
sendKEY = create(char);
sendKEY = size(sendKEY, 256);
if (sendKEY == NULL)
{
throw(MEMORY_ALLOC_FAILURE);
}
}
catch (MEMORY_ALLOC_FAILURE)
{
fprintf(stderr, "Memory allocation failed\n");
close(sockfd);
return 1;
}
end_try;
decryptText(sendKEY, buffer); decryptText(sendKEY, buffer);