libkmod-module: modinfo: print signature id
This way it's possible to give at least the signature type for PKCS#7.
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 @@
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 @@
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.
*/
}