Add casts to OpenAES function use to fix the last remaining warnings

This commit is contained in:
Cameron Gutman 2014-10-18 11:37:10 -04:00
parent 9e6ee13918
commit 330cb36490

View File

@ -53,7 +53,7 @@ int initializeInputStream(IP_ADDRESS addr, PCONNECTION_LISTENER_CALLBACKS clCall
return -1; 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"); Limelog("Failed to import AES key data\n");
return -1; return -1;
@ -103,8 +103,8 @@ static void inputSendThreadProc(void* context) {
} }
encryptedSize = sizeof(encryptedBuffer); encryptedSize = sizeof(encryptedBuffer);
err = oaes_encrypt(oaesContext, (const char*) &holder->packet, holder->packetLength, err = oaes_encrypt(oaesContext, (const unsigned char*) &holder->packet, holder->packetLength,
encryptedBuffer, &encryptedSize); (unsigned char*) encryptedBuffer, &encryptedSize);
free(holder); free(holder);
if (err != OAES_RET_SUCCESS) { if (err != OAES_RET_SUCCESS) {
Limelog("Input thread terminating #2\n"); Limelog("Input thread terminating #2\n");