summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-03 11:01:36 -0400
committerPeter Jones <pjones@redhat.com>2013-10-03 11:11:09 -0400
commitfc986307fb200fdf493b9dd083ad39ae3561b0c9 (patch)
treed1ad0bc3618b4fb85d1972a2ee197a1611c4daca /lib
parentd83213cec3b1cd59a442f1f3fe8fec7c10936fed (diff)
downloadefi-boot-shim-fc986307fb200fdf493b9dd083ad39ae3561b0c9.tar.gz
efi-boot-shim-fc986307fb200fdf493b9dd083ad39ae3561b0c9.zip
Add ident-like blobs to shim.efi for version checking.
I feel dirty.
Diffstat (limited to 'lib')
-rw-r--r--lib/console.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/console.c b/lib/console.c
index 72d64271..44b08f25 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -312,6 +312,20 @@ console_notify(CHAR16 *string)
console_alertbox(str_arr);
}
+void
+console_notify_ascii(CHAR8 *string)
+{
+ CHAR16 *str = AllocateZeroPool((strlena(string) + 1) * 2);
+ int i, j;
+
+ if (!str)
+ return;
+
+ for (i = 0, j = 1; string[i] != '\0'; i++, j+=2)
+ str[j] = string[i];
+ console_notify(str);
+}
+
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
/* Copy of gnu-efi-3.0 with the added secure boot strings */