mirror of https://github.com/acidanthera/audk.git
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:
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
|
||||
|
|
|
@ -81,7 +81,6 @@ TlsDoHandshake (
|
|||
TLS_CONNECTION *TlsConn;
|
||||
UINTN PendingBufferSize;
|
||||
INTN Ret;
|
||||
UINTN ErrorCode;
|
||||
|
||||
TlsConn = (TLS_CONNECTION *)Tls;
|
||||
PendingBufferSize = 0;
|
||||
|
@ -133,6 +132,8 @@ TlsDoHandshake (
|
|||
));
|
||||
DEBUG_CODE_BEGIN ();
|
||||
while (TRUE) {
|
||||
unsigned long ErrorCode;
|
||||
|
||||
ErrorCode = ERR_get_error ();
|
||||
if (ErrorCode == 0) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue