Re: [edk2] [PATCH] CryptoPkg: Remove deprecated function usage in X509GetCommonName()

2018-05-28 Thread Ye, Ting
Reviewed-by: Ye Ting -Original Message- From: Long, Qin Sent: Thursday, May 24, 2018 4:11 PM To: edk2-devel@lists.01.org Cc: Ye, Ting ; michael.tur...@microsoft.com Subject: [PATCH] CryptoPkg: Remove deprecated function usage in X509GetCommonName() BZ#:

[edk2] [PATCH] CryptoPkg: Remove deprecated function usage in X509GetCommonName()

2018-05-24 Thread Long Qin
BZ#: https://bugzilla.tianocore.org/show_bug.cgi?id=923 X509_NAME_get_text_by_NID() used in X509GetCommonName() implementation is one legacy function which have various limitations. The returned data may be not usable when the target cert contains multicharacter string type like a BMPString or a