terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Mono.Unity.UnityTlsStream Class Reference
+ Inheritance diagram for Mono.Unity.UnityTlsStream:

Public Member Functions

 UnityTlsStream (Stream innerStream, bool leaveInnerStreamOpen, global::System.Net.Security.SslStream owner, MonoTlsSettings settings, Mono.Net.Security.MobileTlsProvider provider)
 
void AuthenticateAsClient (string targetHost, global::System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, global::System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, global::System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
Task AuthenticateAsClientAsync (string targetHost, global::System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, global::System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
override int Read (byte[] buffer, int offset, int count)
 
override void Write (byte[] buffer, int offset, int count)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
void Dispose ()
 
override void Flush ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 

Protected Member Functions

override Mono.Net.Security.MobileTlsContext CreateContext (Mono.Net.Security.MonoSslAuthenticationOptions options)
 
override void Dispose (bool disposing)
 

Package Functions

void CheckThrow (bool authSuccessCheck, bool shutdownCheck=false)
 
ExceptionDispatchInfo SetException (Exception e)
 
int InternalRead (byte[] buffer, int offset, int size, [Out] bool outWantMore)
 
bool InternalWrite (byte[] buffer, int offset, int size)
 
Task< int > InnerRead (bool sync, int requestedSize, CancellationToken cancellationToken)
 
Task InnerWrite (bool sync, CancellationToken cancellationToken)
 
AsyncOperationStatus ProcessHandshake (AsyncOperationStatus status, bool renegotiate)
 
ValueTuple< int, bool > ProcessRead (BufferOffsetSize userBuffer)
 
ValueTuple< int, bool > ProcessWrite (BufferOffsetSize userBuffer)
 

Static Package Functions

static Exception GetSSPIException (Exception e)
 
static Exception GetIOException (Exception e, string message)
 
static Exception GetInternalError ()
 
static Exception GetInvalidNestedCallException ()
 

Package Attributes

readonly int ID
 

Properties

global::System.Net.Security.SslStream SslStream [get]
 
MonoTlsSettings Settings [get]
 
MobileTlsProvider Provider [get]
 
string TargetHost [get, private set]
 
override bool IsAuthenticated [get]
 
X509Certificate LocalCertificate [get]
 
X509Certificate InternalLocalCertificate [get]
 
override bool CanRead [get]
 
override bool CanTimeout [get]
 
override bool CanWrite [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 
override int ReadTimeout [get, set]
 
override int WriteTimeout [get, set]
 

Private Types

enum  Operation {
  None , Handshake , Authenticated , Renegotiate ,
  Read , Write , Close
}
 
enum  OperationType { Read , Write , Renegotiate , Shutdown }
 

Private Member Functions

Task ProcessAuthentication (bool runSynchronously, MonoSslAuthenticationOptions options, CancellationToken cancellationToken)
 
Task< int > StartOperation (MobileAuthenticatedStream.OperationType type, AsyncProtocolRequest asyncRequest, CancellationToken cancellationToken)
 
ValueTuple< int, bool > InternalRead (AsyncProtocolRequest asyncRequest, BufferOffsetSize internalBuffer, byte[] buffer, int offset, int size)
 
bool InternalWrite (AsyncProtocolRequest asyncRequest, BufferOffsetSize2 internalBuffer, byte[] buffer, int offset, int size)
 
void< InnerWriteb__67_0 ()
 

Private Attributes

MobileTlsContext xobileTlsContext
 
ExceptionDispatchInfo lastException
 
AsyncProtocolRequest asyncHandshakeRequest
 
AsyncProtocolRequest asyncReadRequest
 
AsyncProtocolRequest asyncWriteRequest
 
BufferOffsetSize2 readBuffer
 
BufferOffsetSize2 writeBuffer
 
object ioLock
 
int closeRequested
 
bool shutdown
 
MobileAuthenticatedStream.Operation operation
 
readonly global::System.Net.Security.SslStream< SslStreamk__BackingField
 
readonly MonoTlsSettings< Settingsk__BackingField
 
readonly MobileTlsProvider< Providerk__BackingField
 
string< TargetHostk__BackingField
 

Static Private Attributes

static int uniqueNameInteger
 
static int nextId
 

Detailed Description

Definition at line 11 of file UnityTlsStream.cs.


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