CryptoPkg/TlsLib: use unsigned long for ErrorCode
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:
committed by
mergify[bot]
parent
20193b20b5
commit
bdf3142eb7
@@ -701,7 +701,6 @@ TlsSetCaCertificate (
|
||||
TLS_CONNECTION *TlsConn;
|
||||
SSL_CTX *SslCtx;
|
||||
INTN Ret;
|
||||
UINTN ErrorCode;
|
||||
|
||||
BioCert = NULL;
|
||||
Cert = NULL;
|
||||
@@ -753,6 +752,8 @@ TlsSetCaCertificate (
|
||||
//
|
||||
Ret = X509_STORE_add_cert (X509Store, Cert);
|
||||
if (Ret != 1) {
|
||||
unsigned long ErrorCode;
|
||||
|
||||
ErrorCode = ERR_peek_last_error ();
|
||||
//
|
||||
// Ignore "already in table" errors
|
||||
|
Reference in New Issue
Block a user