terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Mono.Unity.UnityTlsContext Class Reference
+ Inheritance diagram for Mono.Unity.UnityTlsContext:
+ Collaboration diagram for Mono.Unity.UnityTlsContext:

Public Member Functions

unsafe UnityTlsContext (MobileAuthenticatedStream parent, MonoSslAuthenticationOptions options)
 
override ValueTuple< int, bool > Read (byte[] buffer, int offset, int count)
 
override ValueTuple< int, bool > Write (byte[] buffer, int offset, int count)
 
override void Renegotiate ()
 
override bool PendingRenegotiation ()
 
override void Shutdown ()
 
override void StartHandshake ()
 
override bool ProcessHandshake ()
 
override void FinishHandshake ()
 
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
unsafe bool ValidateCertificate (X509Certificate2 leaf, X509Chain chain)
 
unsafe X509Certificate SelectClientCertificate (string[] acceptableIssuers)
 
override void Finalize ()
 

Properties

override bool IsAuthenticated [get, set]
 
override X509Certificate LocalClientCertificate [get, set]
 
override X509Certificate2 RemoteCertificate [get, set]
 
MobileAuthenticatedStream Parent [get, set]
 
MonoTlsSettings Settings [get, set]
 
bool IsServer [get, set]
 
string TargetHost [get, set]
 
string ServerName [get, set]
 
bool AskForClientCertificate [get, set]
 
X509CertificateCollection ClientCertificates [get, set]
 
X509Certificate LocalServerCertificate [get, set, private set]
 

Private Member Functions

unsafe IntPtr WriteCallback (byte *data, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
 
unsafe IntPtr ReadCallback (byte *buffer, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
 
unsafe UnityTls.unitytls_x509verify_result VerifyCallback (UnityTls.unitytls_x509list_ref chain, UnityTls.unitytls_errorstate *errorState)
 
unsafe void CertificateCallback (UnityTls.unitytls_tlsctx *ctx, byte *cn, IntPtr cnLen, UnityTls.unitytls_x509name *caList, IntPtr caListLen, UnityTls.unitytls_x509list_ref *chain, UnityTls.unitytls_key_ref *key, UnityTls.unitytls_errorstate *errorState)
 

Static Private Member Functions

static unsafe void ExtractNativeKeyAndChainFromManagedCertificate (X509Certificate cert, UnityTls.unitytls_errorstate *errorState, out UnityTls.unitytls_x509list *nativeCertChain, out UnityTls.unitytls_key *nativeKey)
 
static unsafe IntPtr WriteCallback (void *userData, byte *data, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
 
static unsafe IntPtr ReadCallback (void *userData, byte *buffer, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
 
static unsafe UnityTls.unitytls_x509verify_result VerifyCallback (void *userData, UnityTls.unitytls_x509list_ref chain, UnityTls.unitytls_errorstate *errorState)
 
static unsafe void CertificateCallback (void *userData, UnityTls.unitytls_tlsctx *ctx, byte *cn, IntPtr cnLen, UnityTls.unitytls_x509name *caList, IntPtr caListLen, UnityTls.unitytls_x509list_ref *chain, UnityTls.unitytls_key_ref *key, UnityTls.unitytls_errorstate *errorState)
 

Private Attributes

unsafe UnityTls.unitytls_tlsctxtlsContext
 
unsafe UnityTls.unitytls_x509listrequestedClientCertChain
 
unsafe UnityTls.unitytls_keyrequestedClientKey
 
UnityTls.unitytls_tlsctx_read_callback readCallback
 
UnityTls.unitytls_tlsctx_write_callback writeCallback
 
UnityTls.unitytls_tlsctx_certificate_callback certificateCallback
 
UnityTls.unitytls_tlsctx_x509verify_callback verifyCallback
 
X509Certificate localClientCertificate
 
X509Certificate2 remoteCertificate
 
MonoTlsConnectionInfo connectioninfo
 
bool isAuthenticated
 
bool hasContext
 
bool closedGraceful
 
byte[] writeBuffer
 
byte[] readBuffer
 
GCHandle handle
 
Exception lastException
 
ChainValidationHelper certificateValidator
 
readonly MonoSslAuthenticationOptions< Options > k__BackingField
 
readonly MobileAuthenticatedStream< Parentk__BackingField
 
readonly bool< IsServerk__BackingField
 
readonly string< TargetHostk__BackingField
 
readonly string< ServerNamek__BackingField
 
readonly bool< AskForClientCertificatek__BackingField
 
readonly SslProtocols< EnabledProtocols > k__BackingField
 
readonly X509CertificateCollection< ClientCertificatesk__BackingField
 
X509Certificate< LocalServerCertificatek__BackingField
 

Detailed Description

Definition at line 16 of file UnityTlsContext.cs.


The documentation for this class was generated from the following file: