mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-29 01:04:41 +00:00
Add native MbedTLS crypto backend
This commit is contained in:
1 parent
d62ee951a0
commit
98d7ceecf7
3 files changed
+147
-1
No files matched your search
+1
-1
@@ -247,7 +247,7 @@ static void inputSendThreadProc(void* context) {
|
||||
else {
|
||||
// Encrypt the message into the output buffer while leaving room for the length
|
||||
encryptedSize = sizeof(encryptedBuffer) - 4;
|
||||
err = encryptData((const unsigned char*)&holder->packet, holder->packetLength,
|
||||
err = encryptData((unsigned char*)&holder->packet, holder->packetLength,
|
||||
(unsigned char*)&encryptedBuffer[4], (int*)&encryptedSize);
|
||||
free(holder);
|
||||
if (err != 0) {
|
||||
|
||||
Reference in new issue
Block a user