diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2016-06-05 00:09:22 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2016-06-27 08:17:55 -0300 |
commit | e78fe15f0aa7150ad8faa01665511a608202dccb (patch) | |
tree | a1368a34cf856ad41ecdeb5643d9fda8769af18e | |
parent | 75f45d9bfa92ade227dc35aa7f0ce455079c4cc5 (diff) | |
download | kmod-e78fe15f0aa7150ad8faa01665511a608202dccb.tar.gz |
libkmod-module: modinfo: print signature id
This way it's possible to give at least the signature type for PKCS#7.
-rw-r--r-- | libkmod/libkmod-module.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index b7b5daa..bf6a8d6 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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. */ } |