From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C18F521E43B58 for ; Fri, 22 Sep 2017 04:25:12 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C4BFC0641E9; Fri, 22 Sep 2017 11:28:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4C4BFC0641E9 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-219.rdu2.redhat.com [10.10.120.219]) by smtp.corp.redhat.com (Postfix) with ESMTP id 477E0619ED; Fri, 22 Sep 2017 11:28:19 +0000 (UTC) To: "Ye, Ting" , "Long, Qin" , "Zhang, Chao B" Cc: "edk2-devel@lists.01.org" References: <20170921024803.13452-1-qin.long@intel.com> From: Laszlo Ersek Message-ID: <76085501-2727-dca0-c852-7a34289529c9@redhat.com> Date: Fri, 22 Sep 2017 13:28:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 22 Sep 2017 11:28:20 +0000 (UTC) Subject: Re: [PATCH v3] CryptoPkg: Add new API to retrieve commonName of X.509 certificate X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 11:25:12 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 09/21/17 05:50, Ye, Ting wrote: > Hi Qin, > > I think we might add OPTIONAL attribute to CommonName, as NULL is an valid input for this API. > In function description, I think we need update below statement to "if *** and *CommonNameSize is 0." > > "If CommonName is not NULL and CommonNameSize is 0." > > Others are good to me. > > Reviewed-by: Ye Ting With those updates, the X509GetCommonName() interface looks good to me as well. I didn't check the implementation. Acked-by: Laszlo Ersek Thanks! Laszlo