Blame 0237-grub-core-commands-verify.c-Fix-hash-algorithms-valu.patch
|
|
a5bd9f6 |
From 41554b3b4fc818587dc532bfe045c282185903be Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
Date: Mon, 1 Apr 2013 01:43:04 +0200
|
|
|
a5bd9f6 |
Subject: [PATCH 237/364] * grub-core/commands/verify.c: Fix hash
|
|
|
a5bd9f6 |
algorithms values for the first three hashes - they start with 1, not with
|
|
|
a5bd9f6 |
0.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
grub-core/commands/verify.c | 4 +++-
|
|
|
a5bd9f6 |
2 files changed, 8 insertions(+), 1 deletion(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index 58c2242..672aa74 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,3 +1,8 @@
|
|
|
a5bd9f6 |
+2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+ * grub-core/commands/verify.c: Fix hash algorithms values for
|
|
|
a5bd9f6 |
+ the first three hashes - they start with 1, not with 0.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
* grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
|
|
|
a5bd9f6 |
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
|
|
|
a5bd9f6 |
index 6c0b580..b4d5e7b 100644
|
|
|
a5bd9f6 |
--- a/grub-core/commands/verify.c
|
|
|
a5bd9f6 |
+++ b/grub-core/commands/verify.c
|
|
|
a5bd9f6 |
@@ -123,7 +123,9 @@ struct signature_v4_header
|
|
|
a5bd9f6 |
} __attribute__ ((packed));
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
const char *hashes[] = {
|
|
|
a5bd9f6 |
- "md5", "sha1", "ripemd160",
|
|
|
a5bd9f6 |
+ [0x01] = "md5",
|
|
|
a5bd9f6 |
+ [0x02] = "sha1",
|
|
|
a5bd9f6 |
+ [0x03] = "ripemd160",
|
|
|
a5bd9f6 |
[0x08] = "sha256",
|
|
|
a5bd9f6 |
[0x09] = "sha384",
|
|
|
a5bd9f6 |
[0x0a] = "sha512",
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|