mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
fix
This commit is contained in:
parent
6dc8215947
commit
977dce858f
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ void *receive_msg_enc(void *args) {
|
||||||
}
|
}
|
||||||
//recv_string[recv_string_len] = '\0';
|
//recv_string[recv_string_len] = '\0';
|
||||||
|
|
||||||
char *base64_dec_str = malloc(B64_DECODE_LEN(str));
|
char *base64_dec_str = malloc(B64_DECODE_LEN(recv_string));
|
||||||
int base64_dec_length = b64_decode(str, base64_dec_str, B64_DECODE_LEN(str));
|
int base64_dec_length = b64_decode(str, base64_dec_str, B64_DECODE_LEN(recv_string));
|
||||||
char *dec = gcrypt_decrypt_msg(base64_dec_str, base64_dec_length);
|
char *dec = gcrypt_decrypt_msg(base64_dec_str, base64_dec_length);
|
||||||
|
|
||||||
//printf("NETRWORK RECEIVED: %s\n", dec);
|
//printf("NETRWORK RECEIVED: %s\n", dec);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue