diff options
| author | Steve Langasek <steve.langasek@ubuntu.com> | 2012-08-29 16:51:10 -0700 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2012-08-29 16:51:10 -0700 |
| commit | 3e5756512efd00beca8e76ea70d5924056aa4714 (patch) | |
| tree | 0ec3924871c45ea16b10e5ff536e21b7a77af7c9 /Cryptlib/Cryptlib.diff | |
| download | efi-boot-shim-3e5756512efd00beca8e76ea70d5924056aa4714.tar.gz efi-boot-shim-3e5756512efd00beca8e76ea70d5924056aa4714.zip | |
Import upstream version 0~20120728.3df9e294
Diffstat (limited to 'Cryptlib/Cryptlib.diff')
| -rw-r--r-- | Cryptlib/Cryptlib.diff | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Cryptlib/Cryptlib.diff b/Cryptlib/Cryptlib.diff new file mode 100644 index 00000000..d30743f1 --- /dev/null +++ b/Cryptlib/Cryptlib.diff @@ -0,0 +1,36 @@ +diff --git a/Cryptlib/SysCall/BaseMemAllocation.c b/Cryptlib/SysCall/BaseMemAllocation.c +index 68bc25a..1abe78e 100644 +--- a/Cryptlib/SysCall/BaseMemAllocation.c ++++ b/Cryptlib/SysCall/BaseMemAllocation.c +@@ -32,7 +32,7 @@ void *realloc (void *ptr, size_t size) + // BUG: hardcode OldSize == size! We have no any knowledge about
+ // memory size of original pointer ptr.
+ //
+- return ReallocatePool ((UINTN)size, (UINTN)size, ptr);
++ return ReallocatePool (ptr, (UINTN)size, (UINTN)size);
+ }
+
+ /* De-allocates or frees a memory block */
+diff --git a/Cryptlib/SysCall/TimerWrapper.c b/Cryptlib/SysCall/TimerWrapper.c +index 805e6b4..bb7bcba 100644 +--- a/Cryptlib/SysCall/TimerWrapper.c ++++ b/Cryptlib/SysCall/TimerWrapper.c +@@ -13,9 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +
+ **/
+
+-#include <Uefi.h>
+ #include <OpenSslSupport.h>
+-#include <Library/UefiRuntimeServicesTableLib.h>
+
+ //
+ // -- Time Management Routines --
+@@ -78,7 +76,7 @@ time_t time (time_t *timer) + //
+ // Get the current time and date information
+ //
+- gRT->GetTime (&Time, NULL);
++ uefi_call_wrapper(RT->GetTime, 2, &Time, NULL);
+
+ //
+ // Years Handling
|
