diff mbox

[2/3] libkmod-signature: handle PKCS#7

Message ID 1465096429-14024-2-git-send-email-lucas.de.marchi@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Lucas De Marchi June 5, 2016, 3:13 a.m. UTC
From: Lucas De Marchi <lucas.demarchi@intel.com>

---
 libkmod/libkmod-signature.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c
index 6fc06fc..ef5fe6e 100644
--- a/libkmod/libkmod-signature.c
+++ b/libkmod/libkmod-signature.c
@@ -69,12 +69,14 @@  const char *const pkey_hash_algo[PKEY_HASH__LAST] = {
 enum pkey_id_type {
 	PKEY_ID_PGP,		/* OpenPGP generated key ID */
 	PKEY_ID_X509,		/* X.509 arbitrary subjectKeyIdentifier */
+	PKEY_ID_PKCS7,		/* Signature in PKCS#7 message */
 	PKEY_ID_TYPE__LAST
 };
 
 const char *const pkey_id_type[PKEY_ID_TYPE__LAST] = {
 	[PKEY_ID_PGP]		= "PGP",
 	[PKEY_ID_X509]		= "X509",
+	[PKEY_ID_PKCS7]		= "PKCS#7",
 };
 
 /*