summaryrefslogtreecommitdiff
path: root/Cryptlib/Library/BaseLib.h
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2017-04-07 12:32:24 +0800
committerPeter Jones <pjones@redhat.com>2017-04-11 10:42:19 -0400
commite883479f35644d17db7efed710657c8543cfcb68 (patch)
tree0d26338cea50d49c95ef5af10785b23c325eebde /Cryptlib/Library/BaseLib.h
parent97469449fda5ba933a64280917e776487301a127 (diff)
downloadefi-boot-shim-e883479f35644d17db7efed710657c8543cfcb68.tar.gz
efi-boot-shim-e883479f35644d17db7efed710657c8543cfcb68.zip
Cryptlib: amend the headers and fix signness
- Declare some functions in the proper headers + We missed them for a long time... - Cast offsetof to UINTN + The original casting triggers the gcc warning since int can not present the offset for the 64bit machines. - Cast the "char" array to "CHAR8 *" to avoid the gcc warnings - Implement atoi correctly Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/Library/BaseLib.h')
-rw-r--r--Cryptlib/Library/BaseLib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cryptlib/Library/BaseLib.h b/Cryptlib/Library/BaseLib.h
index 4c99fa9b..c29919ea 100644
--- a/Cryptlib/Library/BaseLib.h
+++ b/Cryptlib/Library/BaseLib.h
@@ -1,2 +1,8 @@
#include <efi.h>
#include <efilib.h>
+
+UINT32 WriteUnaligned32 (UINT32 *Buffer, UINT32 Value);
+UINTN AsciiStrSize (CHAR8 *string);
+char *AsciiStrnCpy(char *Destination, char *Source, UINTN count);
+char *AsciiStrCat(char *Destination, char *Source);
+UINTN AsciiStrDecimalToUintn(const char *String);