]>
Commit | Line | Data |
---|---|---|
7bf7a6d0 MTL |
1 | diff --git a/Cryptlib/Include/openssl/e_os2.h b/Cryptlib/Include/openssl/e_os2.h |
2 | index 99ea347..f11cffe 100644 | |
3 | --- a/Cryptlib/Include/openssl/e_os2.h | |
4 | +++ b/Cryptlib/Include/openssl/e_os2.h | |
5 | @@ -234,6 +234,7 @@ extern "C" { | |
6 | ||
7 | /* Standard integer types */ | |
8 | # if defined(OPENSSL_SYS_UEFI) | |
9 | +#include <efi.h> | |
10 | typedef INT8 int8_t; | |
11 | typedef UINT8 uint8_t; | |
12 | typedef INT16 int16_t; | |
a3996218 | 13 | diff --git a/Cryptlib/SysCall/BaseMemAllocation.c b/Cryptlib/SysCall/BaseMemAllocation.c |
7bf7a6d0 | 14 | index f390e0d..65e9938 100644 |
a3996218 MG |
15 | --- a/Cryptlib/SysCall/BaseMemAllocation.c |
16 | +++ b/Cryptlib/SysCall/BaseMemAllocation.c | |
7bf7a6d0 | 17 | @@ -33,7 +33,7 @@ void *realloc (void *ptr, size_t size) |
a3996218 MG |
18 | // BUG: hardcode OldSize == size! We have no any knowledge about\r |
19 | // memory size of original pointer ptr.\r | |
20 | //\r | |
f9368474 GCPL |
21 | - return ReallocatePool ((UINTN) size, (UINTN) size, ptr);\r |
22 | + return ReallocatePool (ptr, (UINTN) size, (UINTN) size);\r | |
a3996218 MG |
23 | }\r |
24 | \r | |
25 | /* De-allocates or frees a memory block */\r | |
7bf7a6d0 MTL |
26 | diff --git a/Cryptlib/SysCall/CrtWrapper.c b/Cryptlib/SysCall/CrtWrapper.c |
27 | index 20c9656..7878953 100644 | |
28 | --- a/Cryptlib/SysCall/CrtWrapper.c | |
29 | +++ b/Cryptlib/SysCall/CrtWrapper.c | |
30 | @@ -371,20 +371,6 @@ size_t fwrite (const void *buffer, size_t size, size_t count, FILE *stream) | |
31 | return 0;\r | |
32 | }\r | |
33 | \r | |
34 | -//\r | |
35 | -// -- Dummy OpenSSL Support Routines --\r | |
36 | -//\r | |
37 | -\r | |
38 | -int BIO_printf (void *bio, const char *format, ...)\r | |
39 | -{\r | |
40 | - return 0;\r | |
41 | -}\r | |
42 | -\r | |
43 | -int BIO_snprintf(char *buf, size_t n, const char *format, ...)\r | |
44 | -{\r | |
45 | - return 0;\r | |
46 | -}\r | |
47 | -\r | |
48 | #ifdef __GNUC__\r | |
49 | \r | |
50 | typedef\r | |
a3996218 | 51 | diff --git a/Cryptlib/SysCall/TimerWrapper.c b/Cryptlib/SysCall/TimerWrapper.c |
7bf7a6d0 | 52 | index 581b8fb..04fe4ef 100644 |
a3996218 MG |
53 | --- a/Cryptlib/SysCall/TimerWrapper.c |
54 | +++ b/Cryptlib/SysCall/TimerWrapper.c | |
55 | @@ -13,9 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
56 | \r | |
57 | **/\r | |
58 | \r | |
59 | -#include <Uefi.h>\r | |
7bf7a6d0 | 60 | #include <CrtLibSupport.h>\r |
a3996218 MG |
61 | -#include <Library/UefiRuntimeServicesTableLib.h>\r |
62 | \r | |
63 | //\r | |
64 | // -- Time Management Routines --\r | |
7bf7a6d0 | 65 | @@ -79,7 +77,7 @@ time_t time (time_t *timer) |
a3996218 MG |
66 | //\r |
67 | // Get the current time and date information\r | |
68 | //\r | |
69 | - gRT->GetTime (&Time, NULL);\r | |
70 | + uefi_call_wrapper(RT->GetTime, 2, &Time, NULL);\r | |
71 | \r | |
72 | //\r | |
73 | // Years Handling\r |