arrfab / rpms / shim-signed

Forked from rpms/shim-signed 5 years ago
Clone

Blame SOURCES/0004-Don-t-allow-sha1-on-the-mokutil-command-line.patch

112f40
From ecc8fb0d92f0f453414a98172df22e23fb5893f5 Mon Sep 17 00:00:00 2001
112f40
From: Peter Jones <pjones@redhat.com>
112f40
Date: Tue, 16 Jun 2015 17:06:30 -0400
112f40
Subject: [PATCH 04/10] Don't allow sha1 on the mokutil command line.
112f40
112f40
Related: rhbz#1115843
112f40
112f40
Signed-off-by: Peter Jones <pjones@redhat.com>
112f40
---
112f40
 src/mokutil.c | 2 ++
112f40
 1 file changed, 2 insertions(+)
112f40
112f40
diff --git a/src/mokutil.c b/src/mokutil.c
112f40
index a7e83f71f0b..1fb34f9d3aa 100644
112f40
--- a/src/mokutil.c
112f40
+++ b/src/mokutil.c
112f40
@@ -1351,10 +1351,12 @@ identify_hash_type (const char *hash_str, efi_guid_t *type)
112f40
 	}
112f40
 
112f40
 	switch (len) {
112f40
+#if 0
112f40
 	case SHA_DIGEST_LENGTH*2:
112f40
 		*type = efi_guid_sha1;
112f40
 		hash_size = SHA_DIGEST_LENGTH;
112f40
 		break;
112f40
+#endif
112f40
 	case SHA224_DIGEST_LENGTH*2:
112f40
 		*type = efi_guid_sha224;
112f40
 		hash_size = SHA224_DIGEST_LENGTH;
112f40
-- 
112f40
2.17.1
112f40