From 330cb364900e81a62a760df46f1c6098ae498156 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 18 Oct 2014 11:37:10 -0400 Subject: [PATCH] Add casts to OpenAES function use to fix the last remaining warnings --- limelight-common/InputStream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/limelight-common/InputStream.c b/limelight-common/InputStream.c index ee42a25..0cedf09 100644 --- a/limelight-common/InputStream.c +++ b/limelight-common/InputStream.c @@ -53,7 +53,7 @@ int initializeInputStream(IP_ADDRESS addr, PCONNECTION_LISTENER_CALLBACKS clCall return -1; } - if (oaes_key_import_data(oaesContext, aesKeyData, aesKeyDataLength) != OAES_RET_SUCCESS) + if (oaes_key_import_data(oaesContext, (const unsigned char*)aesKeyData, aesKeyDataLength) != OAES_RET_SUCCESS) { Limelog("Failed to import AES key data\n"); return -1; @@ -103,8 +103,8 @@ static void inputSendThreadProc(void* context) { } encryptedSize = sizeof(encryptedBuffer); - err = oaes_encrypt(oaesContext, (const char*) &holder->packet, holder->packetLength, - encryptedBuffer, &encryptedSize); + err = oaes_encrypt(oaesContext, (const unsigned char*) &holder->packet, holder->packetLength, + (unsigned char*) encryptedBuffer, &encryptedSize); free(holder); if (err != OAES_RET_SUCCESS) { Limelog("Input thread terminating #2\n");