]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
CryptoPkg: Fix handling of &strcmp function pointers
[mirror_edk2.git] / CryptoPkg / Library / IntrinsicLib / MemoryIntrinsics.c
index 9d6867ebce2675df600b6ef5a4152769387f32eb..e8a76d07ff4dc4f0f804e4011578e45b70acbbbc 100644 (file)
@@ -2,7 +2,7 @@
   Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based\r
   Cryptographic Library.\r
 \r
   Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based\r
   Cryptographic Library.\r
 \r
-Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Base.h>\r
 #include <Library/BaseMemoryLib.h>\r
 \r
 #include <Base.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/BaseLib.h>\r
 \r
 /* OpenSSL will use floating point support, and C compiler produces the _fltused\r
    symbol by default. Simply define this symbol here to satisfy the linker. */\r
 \r
 /* OpenSSL will use floating point support, and C compiler produces the _fltused\r
    symbol by default. Simply define this symbol here to satisfy the linker. */\r
@@ -44,3 +45,8 @@ void * memset (void *dest, char ch, unsigned int count)
   \r
   return dest;\r
 }\r
   \r
   return dest;\r
 }\r
+\r
+int strcmp (const char *s1, const char *s2)\r
+{\r
+  return (int)AsciiStrCmp(s1, s2);\r
+}\r