From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.4516.1649416591594403703 for ; Fri, 08 Apr 2022 04:16:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ijD658T9; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649416590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IpxqBDnNpV0S7uXT54zOvJiq5ZP7T91Z73mK13gMmDQ=; b=ijD658T9sJC3F/orgXEFyiDkfKTonl7Aq0nPgxvFB4Tbhe6cDvQgP9C2pHbhMuGaEL906M rMf1492SXrfB/WMDzQkVXG+FF0YTbAFHCMMb45AW8oyBigKw+HnFSAeE7OvEYgIcT4ZK43 1hPm5FCpWVhOVvghFd+TGtbyDj9IzoE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-596-igwgQQOlN3Cpqeltk2IiBA-1; Fri, 08 Apr 2022 07:16:26 -0400 X-MC-Unique: igwgQQOlN3Cpqeltk2IiBA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 02D1680346F; Fri, 8 Apr 2022 11:16:26 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6A9B407E1C5; Fri, 8 Apr 2022 11:16:25 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BEEF8180062D; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [PATCH v2 2/8] CryptoPkg/CrtLibSupport: add strstr() Date: Fri, 8 Apr 2022 13:16:16 +0200 Message-Id: <20220408111622.3519517-3-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Add #define for strstr(). Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index 75172b920b67..a47befbb907e 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -405,6 +405,7 @@ inet_pton ( #define strcat(strDest, strSource) AsciiStrCatS(strDest,MAX_STRING_SIZE,strSource) #define strncmp(string1, string2, count) (int)(AsciiStrnCmp(string1,string2,(UINTN)(count))) #define strcasecmp(str1, str2) (int)AsciiStriCmp(str1,str2) +#define strstr(s1, s2) AsciiStrStr(s1,s2) #define sprintf(buf, ...) AsciiSPrint(buf,MAX_STRING_SIZE,__VA_ARGS__) #define localtime(timer) NULL #define assert(expression) -- 2.35.1