]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg/CrtLibSupport: add strstr()
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Apr 2022 11:24:51 +0000 (19:24 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 12 Apr 2022 14:39:01 +0000 (14:39 +0000)
Add #define for strstr().
Will be needed by openssl 3.0.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
CryptoPkg/Library/Include/CrtLibSupport.h

index 75172b920b67868179438f7e0cac8164f04a327e..a47befbb907ea1ccc50baebb353713d64316b97a 100644 (file)
@@ -405,6 +405,7 @@ inet_pton   (
 #define strcat(strDest, strSource)          AsciiStrCatS(strDest,MAX_STRING_SIZE,strSource)\r
 #define strncmp(string1, string2, count)    (int)(AsciiStrnCmp(string1,string2,(UINTN)(count)))\r
 #define strcasecmp(str1, str2)              (int)AsciiStriCmp(str1,str2)\r
+#define strstr(s1, s2)                      AsciiStrStr(s1,s2)\r
 #define sprintf(buf, ...)                   AsciiSPrint(buf,MAX_STRING_SIZE,__VA_ARGS__)\r
 #define localtime(timer)                    NULL\r
 #define assert(expression)\r