Commit d9056967 authored by npzacs's avatar npzacs
Browse files

If reading unit key file fails, try backup file from DUPLICATE/

parent a0319947
......@@ -863,6 +863,10 @@ static int _calc_title_hash(AACS *aacs)
int result = AACS_SUCCESS;
size = _read_file(aacs, "AACS" DIR_SEP "Unit_Key_RO.inf", &data);
if (!size) {
size = _read_file(aacs, "AACS" DIR_SEP "DUPLICATE" DIR_SEP "Unit_Key_RO.inf", &data);
}
if (size) {
crypto_aacs_title_hash(data, size, aacs->disc_id);
BD_DEBUG(DBG_AACS, "Disc ID: %s\n", str_print_hex(str, aacs->disc_id, 20));
......
Markdown is supported
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