Trying to fix the issue where the server doesnt return the key.
This commit is contained in:
parent
e19555be6c
commit
94ab68aeb9
Binary file not shown.
21
src/server.c
21
src/server.c
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user