Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
24466667
Commit
24466667
authored
Jul 07, 2020
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert vid in parser
parent
f074d50b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
src/devtools/parser_test.c
src/devtools/parser_test.c
+2
-2
src/file/keydbcfg-parser.y
src/file/keydbcfg-parser.y
+2
-3
src/file/keydbcfg.h
src/file/keydbcfg.h
+1
-1
src/libaacs/aacs.c
src/libaacs/aacs.c
+2
-3
No files found.
src/devtools/parser_test.c
View file @
24466667
...
...
@@ -73,8 +73,8 @@ static int print_title_entries(title_entry_list *list)
#endif
if
(
memcmp
(
cursor
->
entry
.
mk
,
empty_key
,
16
))
printf
(
" MEK: %s
\n
"
,
str_print_hex
(
tmp
,
cursor
->
entry
.
mk
,
16
));
if
(
cursor
->
entry
.
vid
)
printf
(
" VID: %s
\n
"
,
cursor
->
entry
.
vid
);
if
(
memcmp
(
cursor
->
entry
.
vid
,
empty_key
,
16
)
)
printf
(
" VID: %s
\n
"
,
str_print_hex
(
tmp
,
cursor
->
entry
.
vid
,
16
)
);
#if 0
if (cursor->entry.bn)
{
...
...
src/file/keydbcfg-parser.y
View file @
24466667
...
...
@@ -547,7 +547,6 @@ int keydbcfg_config_file_close(config_file *cfgfile)
{
title_entry_list *next = cfgfile->list->next;
/*X_FREE(cfgfile->list->entry.title);*/
X_FREE(cfgfile->list->entry.vid);
/*DIGIT_KEY_PAIR_LIST_FREE(cfgfile->list->entry.bn);*/
/*DIGIT_KEY_PAIR_LIST_FREE(cfgfile->list->entry.pak);*/
/*DIGIT_KEY_PAIR_LIST_FREE(cfgfile->list->entry.tk);*/
...
...
@@ -734,8 +733,8 @@ static int add_entry(title_entry_list *list, int type, char *entry)
case ENTRY_TYPE_VID:
CHECK_KEY_LENGTH("vid", 32)
X_FREE
(list->entry.vid);
list->entry.vid =
entry;
hexstring_to_hex_array
(list->entry.vid
, 16, entry
);
X_FREE(
entry
)
;
break;
case ENTRY_TYPE_VUK:
...
...
src/file/keydbcfg.h
View file @
24466667
...
...
@@ -90,7 +90,7 @@ struct title_entry_t
//char *title;
//date_entry date;
uint8_t
mk
[
16
];
char
*
vid
;
uint8_t
vid
[
16
]
;
//digit_key_pair_list *bn;
uint8_t
vuk
[
16
];
//digit_key_pair_list *pak;
...
...
src/libaacs/aacs.c
View file @
24466667
...
...
@@ -806,9 +806,8 @@ static void _find_config_entry(AACS *aacs, title_entry_list *ce,
str_print_hex
(
str2
,
ce
->
entry
.
discid
,
20
),
str_print_hex
(
str
,
mk
,
16
));
}
if
(
ce
->
entry
.
vid
)
{
hexstring_to_hex_array
(
aacs
->
vid
,
sizeof
(
aacs
->
vid
),
ce
->
entry
.
vid
);
if
(
memcmp
(
ce
->
entry
.
vid
,
empty_key
,
16
))
{
memcpy
(
aacs
->
vid
,
ce
->
entry
.
vid
,
16
);
BD_DEBUG
(
DBG_AACS
,
"Found volume id for %s: %s
\n
"
,
str_print_hex
(
str2
,
ce
->
entry
.
discid
,
20
),
str_print_hex
(
str
,
aacs
->
vid
,
16
));
...
...
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