Skip to content

Instantly share code, notes, and snippets.

@llm96
llm96 / 001-aacskeys-OpenSSL-build-fixes.patch
Created January 24, 2025 20:58
Fix aacskeys compilation with OpenSSL 3.4
diff --git a/src/aacs_aes.cpp b/src/aacs_aes.cpp
index b1bb19b..b7b335f 100644
--- a/src/aacs_aes.cpp
+++ b/src/aacs_aes.cpp
@@ -113,14 +113,16 @@ int calculate_title_key_file_mac(const unsigned char *title_key_file, size_t len
int calculate_title_key_file_hash(const unsigned char *title_key_file, size_t length, /*out*/ unsigned char *title_key_file_hash) {
- EVP_MD_CTX mdctx;
+ EVP_MD_CTX* mdctx = NULL;