From 96b347c200b2401d02f576b47da8a49cc6286b4b Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 31 Aug 2017 14:49:48 -0400 Subject: Add a mechanism to print openssl errors Signed-off-by: Peter Jones --- include/console.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/console.h') 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 */ -- cgit v1.2.3