mirror of https://github.com/acidanthera/audk.git
CryptoPkg/TlsLib: ERR_GET_FUNC is gone
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Brian J. Johnson <brian.johnson@hpe.com> Tested-by: Kenneth Lautner <klautner@microsoft.com>
This commit is contained in:
parent
2a6dc1211f
commit
eac38f74c4
|
@ -757,7 +757,7 @@ TlsSetCaCertificate (
|
|||
//
|
||||
// Ignore "already in table" errors
|
||||
//
|
||||
if (!((ERR_GET_FUNC (ErrorCode) == X509_F_X509_STORE_ADD_CERT) &&
|
||||
if (!((ERR_GET_LIB (ErrorCode) == ERR_LIB_X509) &&
|
||||
(ERR_GET_REASON (ErrorCode) == X509_R_CERT_ALREADY_IN_HASH_TABLE)))
|
||||
{
|
||||
Status = EFI_ABORTED;
|
||||
|
|
|
@ -140,11 +140,10 @@ TlsDoHandshake (
|
|||
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a ERROR 0x%x=L%x:F%x:R%x\n",
|
||||
"%a ERROR 0x%x=L%x:R%x\n",
|
||||
__func__,
|
||||
ErrorCode,
|
||||
ERR_GET_LIB (ErrorCode),
|
||||
ERR_GET_FUNC (ErrorCode),
|
||||
ERR_GET_REASON (ErrorCode)
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue