mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-12-03 00:33:43 +08:00
libkmod-module: modinfo: print signature id
This way it's possible to give at least the signature type for PKCS#7.
This commit is contained in:
parent
75f45d9bfa
commit
e78fe15f0a
@ -2255,6 +2255,12 @@ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_
|
||||
struct kmod_list *n;
|
||||
char *key_hex;
|
||||
|
||||
n = kmod_module_info_append(list, "signature", strlen("sig_id"),
|
||||
sig_info.id_type, strlen(sig_info.id_type));
|
||||
if (n == NULL)
|
||||
goto list_error;
|
||||
count++;
|
||||
|
||||
n = kmod_module_info_append(list, "signer", strlen("signer"),
|
||||
sig_info.signer, sig_info.signer_len);
|
||||
if (n == NULL)
|
||||
@ -2294,7 +2300,7 @@ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_
|
||||
count++;
|
||||
|
||||
/*
|
||||
* Omit sig_info.id_type and sig_info.algo for now, as these
|
||||
* Omit sig_info.algo for now, as these
|
||||
* are currently constant.
|
||||
*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user