Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
d9056967
Commit
d9056967
authored
Apr 28, 2015
by
npzacs
Browse files
If reading unit key file fails, try backup file from DUPLICATE/
parent
a0319947
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/aacs.c
View file @
d9056967
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment