Commit 3637d44b authored by npzacs's avatar npzacs
Browse files

Added aacs_free_rl()

parent 63579eae
......@@ -129,11 +129,11 @@ int main (int argc, char **argv)
rl = aacs_get_hrl(&num_entries, &mkb_version);
_dump_rl("Host", rl, num_entries, mkb_version);
X_FREE(rl);
aacs_free_rl(&rl);
rl = aacs_get_drl(&num_entries, &mkb_version);
_dump_rl("Drive", rl, num_entries, mkb_version);
X_FREE(rl);
aacs_free_rl(&rl);
return EXIT_SUCCESS;
}
......@@ -974,6 +974,11 @@ AACS_RL_ENTRY *aacs_get_drl(int *num_records, int *mkbv)
return _get_rl("drl", num_records, mkbv);
}
void aacs_free_rl(AACS_RL_ENTRY **rl)
{
X_FREE(*rl);
}
uint32_t aacs_get_bus_encryption(AACS *aacs)
{
return (aacs->bee * AACS_BUS_ENCRYPTION_ENABLED) |
......
......@@ -60,6 +60,7 @@ typedef struct {
AACS_PUBLIC AACS_RL_ENTRY *aacs_get_hrl(int *num_entries, int *mkb_version);
AACS_PUBLIC AACS_RL_ENTRY *aacs_get_drl(int *num_entries, int *mkb_version);
AACS_PUBLIC void aacs_free_rl(AACS_RL_ENTRY **rl);
/* bus encryption info */
......
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