Commit 06ada4bc authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix build

parent 6e9f21f1
......@@ -1497,10 +1497,11 @@ void LLSecAPIBasicHandler::_writeProtectedData()
llofstream protected_data_stream(tmp_filename.c_str(),
std::ios_base::binary);
EVP_CIPHER_CTX* ctx = nullptr;
try
{
EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
ctx = EVP_CIPHER_CTX_new();
EVP_EncryptInit_ex(ctx, EVP_chacha20(), NULL, salt, NULL); // 1 is encrypt
unsigned char unique_id[MAC_ADDRESS_BYTES];
LLMachineID::getUniqueID(unique_id, sizeof(unique_id));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment