summaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-08-31 14:49:48 -0400
committerPeter Jones <pjones@redhat.com>2017-08-31 15:13:45 -0400
commit96b347c200b2401d02f576b47da8a49cc6286b4b (patch)
treefc4205f201e1b7e81f8b454d6db3734588cb45ee /include/console.h
parentaaf8049c3995dd2c0c42087a601c262545f36b9c (diff)
downloadefi-boot-shim-96b347c200b2401d02f576b47da8a49cc6286b4b.tar.gz
efi-boot-shim-96b347c200b2401d02f576b47da8a49cc6286b4b.zip
Add a mechanism to print openssl errors
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 9d39841c..e9cf2858 100644
--- a/include/console.h
+++ b/include/console.h
@@ -88,6 +88,9 @@ extern UINT8 verbose;
__dprinta_ret; \
})
+extern EFI_STATUS print_crypto_errors(EFI_STATUS rc, char *file, const char *func, int line);
+#define crypterr(rc) print_crypto_errors((rc), __FILE__, __func__, __LINE__)
+
extern VOID msleep(unsigned long msecs);
#endif /* _SHIM_LIB_CONSOLE_H */