using System; using System.IO; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; using Cpp2IlInjected; using Mono.Security.Interface; namespace System.Net.Security { /// Provides a stream used for client-server communication that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally the client. // Token: 0x020002FA RID: 762 [Token(Token = "0x20002FA")] public class SslStream : AuthenticatedStream { // Token: 0x17000417 RID: 1047 // (get) Token: 0x06001441 RID: 5185 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x17000417")] internal IMonoSslStream Impl { [Token(Token = "0x6001441")] [Address(RVA = "0x223EE20", Offset = "0x223DC20", VA = "0x18223EE20")] get { return null; } } // Token: 0x06001442 RID: 5186 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001442")] [Address(RVA = "0x223E710", Offset = "0x223D510", VA = "0x18223E710")] private static MonoTlsProvider GetProvider() { return null; } /// Initializes a new instance of the class using the specified . /// A object used by the for sending and receiving data. /// /// is not readable. /// -or- /// is not writable. /// /// is . /// -or- /// is equal to . // Token: 0x06001443 RID: 5187 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001443")] [Address(RVA = "0x223EA90", Offset = "0x223D890", VA = "0x18223EA90")] public SslStream(Stream innerStream) { } /// Initializes a new instance of the class using the specified and stream closure behavior. /// A object used by the for sending and receiving data. /// A Boolean value that indicates the closure behavior of the object used by the for sending and receiving data. This parameter indicates if the inner stream is left open. /// /// is not readable. /// -or- /// is not writable. /// /// is . /// -or- /// is equal to . // Token: 0x06001444 RID: 5188 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001444")] [Address(RVA = "0x223EC80", Offset = "0x223DA80", VA = "0x18223EC80")] public SslStream(Stream innerStream, bool leaveInnerStreamOpen) { } /// Initializes a new instance of the class using the specified , stream closure behavior and certificate validation delegate. /// A object used by the for sending and receiving data. /// A Boolean value that indicates the closure behavior of the object used by the for sending and receiving data. This parameter indicates if the inner stream is left open. /// A delegate responsible for validating the certificate supplied by the remote party. /// /// is not readable. /// -or- /// is not writable. /// /// is . /// -or- /// is equal to . // Token: 0x06001445 RID: 5189 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001445")] [Address(RVA = "0x223EB00", Offset = "0x223D900", VA = "0x18223EB00")] public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback) { } /// Initializes a new instance of the class using the specified , stream closure behavior, certificate validation delegate and certificate selection delegate. /// A object used by the for sending and receiving data. /// A Boolean value that indicates the closure behavior of the object used by the for sending and receiving data. This parameter indicates if the inner stream is left open. /// A delegate responsible for validating the certificate supplied by the remote party. /// A delegate responsible for selecting the certificate used for authentication. /// /// is not readable. /// -or- /// is not writable. /// /// is . /// -or- /// is equal to . // Token: 0x06001446 RID: 5190 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001446")] [Address(RVA = "0x223EBC0", Offset = "0x223D9C0", VA = "0x18223EBC0")] public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback) { } // Token: 0x06001447 RID: 5191 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001447")] [Address(RVA = "0x223ED00", Offset = "0x223DB00", VA = "0x18223ED00")] internal SslStream(Stream innerStream, bool leaveInnerStreamOpen, MonoTlsProvider provider, MonoTlsSettings settings) { } // Token: 0x06001448 RID: 5192 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001448")] [Address(RVA = "0x223E2F0", Offset = "0x223D0F0", VA = "0x18223E2F0")] internal static IMonoSslStream CreateMonoSslStream(Stream innerStream, bool leaveInnerStreamOpen, MonoTlsProvider provider, MonoTlsSettings settings) { return null; } /// Called by clients to authenticate the server and optionally the client in a client-server connection. /// The name of the server that shares this . /// /// is . /// The authentication failed and left this object in an unusable state. /// Authentication has already occurred. /// -or- /// Server authentication using this was tried previously. /// -or- /// Authentication is already in progress. /// This object has been closed. // Token: 0x06001449 RID: 5193 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001449")] [Address(RVA = "0x223DFC0", Offset = "0x223CDC0", VA = "0x18223DFC0", Slot = "32")] public virtual void AuthenticateAsClient(string targetHost) { } /// Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation. The authentication process uses the specified certificate collection and SSL protocol. /// The name of the server that will share this . /// The that contains client certificates. /// The value that represents the protocol used for authentication. /// A value that specifies whether the certificate revocation list is checked during authentication. /// The task object representing the asynchronous operation. // Token: 0x0600144A RID: 5194 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600144A")] [Address(RVA = "0x223DE80", Offset = "0x223CC80", VA = "0x18223DE80", Slot = "33")] public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { return null; } /// Gets a value that indicates whether authentication was successful. /// /// if successful authentication occurred; otherwise, . // Token: 0x17000418 RID: 1048 // (get) Token: 0x0600144B RID: 5195 RVA: 0x00009240 File Offset: 0x00007440 [Token(Token = "0x17000418")] public override bool IsAuthenticated { [Token(Token = "0x600144B")] [Address(RVA = "0x223EE90", Offset = "0x223DC90", VA = "0x18223EE90", Slot = "31")] get { return default(bool); } } /// Gets a value that indicates whether the underlying stream is seekable. /// This property always returns . // Token: 0x17000419 RID: 1049 // (get) Token: 0x0600144C RID: 5196 RVA: 0x00009258 File Offset: 0x00007458 [Token(Token = "0x17000419")] public override bool CanSeek { [Token(Token = "0x600144C")] [Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")] get { return default(bool); } } /// Gets a value that indicates whether the underlying stream is readable. /// /// if authentication has occurred and the underlying stream is readable; otherwise . // Token: 0x1700041A RID: 1050 // (get) Token: 0x0600144D RID: 5197 RVA: 0x00009270 File Offset: 0x00007470 [Token(Token = "0x1700041A")] public override bool CanRead { [Token(Token = "0x600144D")] [Address(RVA = "0x223ED80", Offset = "0x223DB80", VA = "0x18223ED80", Slot = "7")] get { return default(bool); } } /// Gets a value that indicates whether the underlying stream is writable. /// /// if authentication has occurred and the underlying stream is writable; otherwise . // Token: 0x1700041B RID: 1051 // (get) Token: 0x0600144E RID: 5198 RVA: 0x00009288 File Offset: 0x00007488 [Token(Token = "0x1700041B")] public override bool CanWrite { [Token(Token = "0x600144E")] [Address(RVA = "0x223EDD0", Offset = "0x223DBD0", VA = "0x18223EDD0", Slot = "9")] get { return default(bool); } } /// Gets or sets the amount of time a read operation blocks waiting for data. /// The amount of time that elapses before a synchronous read operation fails. // Token: 0x1700041C RID: 1052 // (get) Token: 0x0600144F RID: 5199 RVA: 0x000092A0 File Offset: 0x000074A0 [Token(Token = "0x1700041C")] public override int ReadTimeout { [Token(Token = "0x600144F")] [Address(RVA = "0x223F040", Offset = "0x223DE40", VA = "0x18223F040", Slot = "13")] get { return 0; } } /// Gets or sets the amount of time a write operation blocks waiting for data. /// The amount of time that elapses before a synchronous write operation fails. // Token: 0x1700041D RID: 1053 // (get) Token: 0x06001450 RID: 5200 RVA: 0x000092B8 File Offset: 0x000074B8 [Token(Token = "0x1700041D")] public override int WriteTimeout { [Token(Token = "0x6001450")] [Address(RVA = "0x223F0D0", Offset = "0x223DED0", VA = "0x18223F0D0", Slot = "14")] get { return 0; } } /// Gets the length of the underlying stream. /// The length of the underlying stream. /// Getting the value of this property is not supported when the underlying stream is a . // Token: 0x1700041E RID: 1054 // (get) Token: 0x06001451 RID: 5201 RVA: 0x000092D0 File Offset: 0x000074D0 [Token(Token = "0x1700041E")] public override long Length { [Token(Token = "0x6001451")] [Address(RVA = "0x223EF20", Offset = "0x223DD20", VA = "0x18223EF20", Slot = "10")] get { return 0L; } } /// Gets or sets the current position in the underlying stream. /// The current position in the underlying stream. /// Setting this property is not supported. /// -or- /// Getting the value of this property is not supported when the underlying stream is a . // Token: 0x1700041F RID: 1055 // (get) Token: 0x06001452 RID: 5202 RVA: 0x000092E8 File Offset: 0x000074E8 // (set) Token: 0x06001453 RID: 5203 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x1700041F")] public override long Position { [Token(Token = "0x6001452")] [Address(RVA = "0x223EFB0", Offset = "0x223DDB0", VA = "0x18223EFB0", Slot = "11")] get { return 0L; } [Token(Token = "0x6001453")] [Address(RVA = "0x223F160", Offset = "0x223DF60", VA = "0x18223F160", Slot = "12")] set { } } /// Sets the length of the underlying stream. /// An value that specifies the length of the stream. // Token: 0x06001454 RID: 5204 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001454")] [Address(RVA = "0x223E860", Offset = "0x223D660", VA = "0x18223E860", Slot = "26")] public override void SetLength(long value) { } /// Throws a . /// This value is ignored. /// This value is ignored. /// Always throws a . /// Seeking is not supported by objects. // Token: 0x06001455 RID: 5205 RVA: 0x00009300 File Offset: 0x00007500 [Token(Token = "0x6001455")] [Address(RVA = "0x223E7F0", Offset = "0x223D5F0", VA = "0x18223E7F0", Slot = "25")] public override long Seek(long offset, SeekOrigin origin) { return 0L; } // Token: 0x06001456 RID: 5206 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001456")] [Address(RVA = "0x223E6E0", Offset = "0x223D4E0", VA = "0x18223E6E0", Slot = "18")] public override Task FlushAsync(CancellationToken cancellationToken) { return null; } /// Causes any buffered data to be written to the underlying device. // Token: 0x06001457 RID: 5207 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001457")] [Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")] public override void Flush() { } // Token: 0x06001458 RID: 5208 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001458")] [Address(RVA = "0x223E280", Offset = "0x223D080", VA = "0x18223E280")] private void CheckDisposed() { } /// Releases the unmanaged resources used by the and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // Token: 0x06001459 RID: 5209 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001459")] [Address(RVA = "0x223E410", Offset = "0x223D210", VA = "0x18223E410", Slot = "16")] protected override void Dispose(bool disposing) { } /// Reads data from this stream and stores it in the specified array. /// A array that receives the bytes read from this stream. /// A that contains the zero-based location in at which to begin storing the data read from this stream. /// A that contains the maximum number of bytes to read from this stream. /// A value that specifies the number of bytes read. When there is no more data to be read, returns 0. /// /// is . /// /// /// /// . /// > the length of . /// -or- /// + count > the length of . /// The read operation failed. Check the inner exception, if present to determine the cause of the failure. /// There is already a read operation in progress. /// This object has been closed. /// Authentication has not occurred. // Token: 0x0600145A RID: 5210 RVA: 0x00009318 File Offset: 0x00007518 [Token(Token = "0x600145A")] [Address(RVA = "0x223E720", Offset = "0x223D520", VA = "0x18223E720", Slot = "27")] public override int Read(byte[] buffer, int offset, int count) { return 0; } /// Write the specified number of s to the underlying stream using the specified buffer and offset. /// A array that supplies the bytes written to the stream. /// A that contains the zero-based location in at which to begin reading bytes to be written to the stream. /// A that contains the number of bytes to read from . /// /// is . /// /// /// /// . /// > the length of . /// -or- /// + count > the length of . /// The write operation failed. /// There is already a write operation in progress. /// This object has been closed. /// Authentication has not occurred. // Token: 0x0600145B RID: 5211 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600145B")] [Address(RVA = "0x223E960", Offset = "0x223D760", VA = "0x18223E960", Slot = "29")] public override void Write(byte[] buffer, int offset, int count) { } /// Begins an asynchronous read operation that reads data from the stream and stores it in the specified array. /// A array that receives the bytes read from the stream. /// The zero-based location in at which to begin storing the data read from this stream. /// The maximum number of bytes to read from the stream. /// An delegate that references the method to invoke when the read operation is complete. /// A user-defined object that contains information about the read operation. This object is passed to the delegate when the operation completes. /// An object that indicates the status of the asynchronous operation. /// /// is . /// /// /// /// . /// > the length of . /// -or- /// + count > the length of . /// The read operation failed. /// -or- /// Encryption is in use, but the data could not be decrypted. /// There is already a read operation in progress. /// This object has been closed. /// Authentication has not occurred. // Token: 0x0600145C RID: 5212 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600145C")] [Address(RVA = "0x223E0C0", Offset = "0x223CEC0", VA = "0x18223E0C0", Slot = "19")] public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) { return null; } /// Ends an asynchronous read operation started with a previous call to . /// An instance returned by a call to /// A value that specifies the number of bytes read from the underlying stream. /// /// is . /// /// was not created by a call to . /// There is no pending read operation to complete. /// -or- /// Authentication has not occurred. /// The read operation failed. // Token: 0x0600145D RID: 5213 RVA: 0x00009330 File Offset: 0x00007530 [Token(Token = "0x600145D")] [Address(RVA = "0x223E4E0", Offset = "0x223D2E0", VA = "0x18223E4E0", Slot = "20")] public override int EndRead(IAsyncResult asyncResult) { return 0; } /// Begins an asynchronous write operation that writes s from the specified buffer to the stream. /// A array that supplies the bytes to be written to the stream. /// The zero-based location in at which to begin reading bytes to be written to the stream. /// An value that specifies the number of bytes to read from . /// An delegate that references the method to invoke when the write operation is complete. /// A user-defined object that contains information about the write operation. This object is passed to the delegate when the operation completes. /// An object indicating the status of the asynchronous operation. /// /// is . /// /// /// /// . /// > the length of . /// -or- /// + count > the length of . /// The write operation failed. /// There is already a write operation in progress. /// This object has been closed. /// Authentication has not occurred. // Token: 0x0600145E RID: 5214 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600145E")] [Address(RVA = "0x223E1A0", Offset = "0x223CFA0", VA = "0x18223E1A0", Slot = "22")] public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) { return null; } /// Ends an asynchronous write operation started with a previous call to . /// An instance returned by a call to /// /// is . /// /// was not created by a call to . /// There is no pending write operation to complete. /// -or- /// Authentication has not occurred. /// The write operation failed. // Token: 0x0600145F RID: 5215 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600145F")] [Address(RVA = "0x223E5E0", Offset = "0x223D3E0", VA = "0x18223E5E0", Slot = "23")] public override void EndWrite(IAsyncResult asyncResult) { } // Token: 0x04000CDD RID: 3293 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4000CDD")] private MonoTlsProvider provider; // Token: 0x04000CDE RID: 3294 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4000CDE")] private IMonoSslStream impl; } }