mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[crypto,tls] do not use context->settings->instance
This commit is contained in:
@@ -1220,10 +1220,10 @@ BOOL freerdp_tls_send_alert(rdpTls* tls)
|
||||
if (!tls->ssl)
|
||||
return TRUE;
|
||||
|
||||
/**
|
||||
* FIXME: The following code does not work on OpenSSL > 1.1.0 because the
|
||||
* SSL struct is opaqe now
|
||||
*/
|
||||
/**
|
||||
* FIXME: The following code does not work on OpenSSL > 1.1.0 because the
|
||||
* SSL struct is opaqe now
|
||||
*/
|
||||
#if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x10100000L)) || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER <= 0x2080300fL))
|
||||
|
||||
@@ -1631,12 +1631,11 @@ int tls_verify_certificate(rdpTls* tls, const rdpCertificate* cert, const char*
|
||||
rdpCertificateData* certificate_data = NULL;
|
||||
BYTE* pemCert = NULL;
|
||||
DWORD flags = VERIFY_CERT_FLAG_NONE;
|
||||
freerdp* instance = NULL;
|
||||
|
||||
WINPR_ASSERT(tls);
|
||||
WINPR_ASSERT(tls->context->settings);
|
||||
WINPR_ASSERT(tls->context);
|
||||
|
||||
instance = (freerdp*)tls->context->settings->instance;
|
||||
freerdp* instance = tls->context->instance;
|
||||
WINPR_ASSERT(instance);
|
||||
|
||||
if (freerdp_shall_disconnect_context(instance->context))
|
||||
|
||||
Reference in New Issue
Block a user