sbkeysync: Print filesystem key databases
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
54e1fbed30
commit
22450d8c40
1 changed files with 13 additions and 1 deletions
|
@ -464,7 +464,7 @@ static void print_key_database(struct key_database *kdb)
|
|||
struct key *key;
|
||||
int i;
|
||||
|
||||
printf(" %s\n", kdb->type->name);
|
||||
printf(" %s (firmware)\n", kdb->type->name);
|
||||
|
||||
list_for_each(&kdb->firmware_keys, key, list) {
|
||||
printf(" %d bytes: [ ", key->id_len);
|
||||
|
@ -472,6 +472,18 @@ static void print_key_database(struct key_database *kdb)
|
|||
printf("0x%02x ", key->id[i]);
|
||||
printf("]\n");
|
||||
}
|
||||
|
||||
printf(" %s (filesystem)\n", kdb->type->name);
|
||||
|
||||
list_for_each(&kdb->filesystem_keys, key, list) {
|
||||
printf(" %d bytes: [ ", key->id_len);
|
||||
for (i = 0; i < key->id_len; i++)
|
||||
printf("0x%02x ", key->id[i]);
|
||||
printf("]\n");
|
||||
printf(" from %s/%s\n",
|
||||
key->keystore_entry->root,
|
||||
key->keystore_entry->name);
|
||||
}
|
||||
}
|
||||
|
||||
static void print_key_databases(struct sync_context *ctx)
|
||||
|
|
Loading…
Reference in a new issue