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: 0x020002F6 RID: 758 [Token(Token = "0x20002F6")] public class SslStream : AuthenticatedStream { // Token: 0x17000413 RID: 1043 // (get) Token: 0x0600142B RID: 5163 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x17000413")] internal IMonoSslStream Impl { [Token(Token = "0x600142B")] [Address(RVA = "0x8B99F0", Offset = "0x8B89F0", VA = "0x1808B99F0")] get { return null; } } // Token: 0x0600142C RID: 5164 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600142C")] [Address(RVA = "0x8B92E0", Offset = "0x8B82E0", VA = "0x1808B92E0")] 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: 0x0600142D RID: 5165 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600142D")] [Address(RVA = "0x8B9660", Offset = "0x8B8660", VA = "0x1808B9660")] 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: 0x0600142E RID: 5166 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600142E")] [Address(RVA = "0x8B9850", Offset = "0x8B8850", VA = "0x1808B9850")] 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: 0x0600142F RID: 5167 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600142F")] [Address(RVA = "0x8B96D0", Offset = "0x8B86D0", VA = "0x1808B96D0")] 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: 0x06001430 RID: 5168 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001430")] [Address(RVA = "0x8B9790", Offset = "0x8B8790", VA = "0x1808B9790")] public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback) { } // Token: 0x06001431 RID: 5169 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001431")] [Address(RVA = "0x8B98D0", Offset = "0x8B88D0", VA = "0x1808B98D0")] internal SslStream(Stream innerStream, bool leaveInnerStreamOpen, MonoTlsProvider provider, MonoTlsSettings settings) { } // Token: 0x06001432 RID: 5170 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001432")] [Address(RVA = "0x8B8EC0", Offset = "0x8B7EC0", VA = "0x1808B8EC0")] 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: 0x06001433 RID: 5171 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001433")] [Address(RVA = "0x8B8B90", Offset = "0x8B7B90", VA = "0x1808B8B90", 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: 0x06001434 RID: 5172 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001434")] [Address(RVA = "0x8B8A50", Offset = "0x8B7A50", VA = "0x1808B8A50", 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: 0x17000414 RID: 1044 // (get) Token: 0x06001435 RID: 5173 RVA: 0x00009228 File Offset: 0x00007428 [Token(Token = "0x17000414")] public override bool IsAuthenticated { [Token(Token = "0x6001435")] [Address(RVA = "0x8B9A60", Offset = "0x8B8A60", VA = "0x1808B9A60", Slot = "31")] get { return default(bool); } } /// Gets a value that indicates whether the underlying stream is seekable. /// This property always returns . // Token: 0x17000415 RID: 1045 // (get) Token: 0x06001436 RID: 5174 RVA: 0x00009240 File Offset: 0x00007440 [Token(Token = "0x17000415")] public override bool CanSeek { [Token(Token = "0x6001436")] [Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x17000416 RID: 1046 // (get) Token: 0x06001437 RID: 5175 RVA: 0x00009258 File Offset: 0x00007458 [Token(Token = "0x17000416")] public override bool CanRead { [Token(Token = "0x6001437")] [Address(RVA = "0x8B9950", Offset = "0x8B8950", VA = "0x1808B9950", 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: 0x17000417 RID: 1047 // (get) Token: 0x06001438 RID: 5176 RVA: 0x00009270 File Offset: 0x00007470 [Token(Token = "0x17000417")] public override bool CanWrite { [Token(Token = "0x6001438")] [Address(RVA = "0x8B99A0", Offset = "0x8B89A0", VA = "0x1808B99A0", 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: 0x17000418 RID: 1048 // (get) Token: 0x06001439 RID: 5177 RVA: 0x00009288 File Offset: 0x00007488 [Token(Token = "0x17000418")] public override int ReadTimeout { [Token(Token = "0x6001439")] [Address(RVA = "0x8B9C10", Offset = "0x8B8C10", VA = "0x1808B9C10", 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: 0x17000419 RID: 1049 // (get) Token: 0x0600143A RID: 5178 RVA: 0x000092A0 File Offset: 0x000074A0 [Token(Token = "0x17000419")] public override int WriteTimeout { [Token(Token = "0x600143A")] [Address(RVA = "0x8B9CA0", Offset = "0x8B8CA0", VA = "0x1808B9CA0", 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: 0x1700041A RID: 1050 // (get) Token: 0x0600143B RID: 5179 RVA: 0x000092B8 File Offset: 0x000074B8 [Token(Token = "0x1700041A")] public override long Length { [Token(Token = "0x600143B")] [Address(RVA = "0x8B9AF0", Offset = "0x8B8AF0", VA = "0x1808B9AF0", 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: 0x1700041B RID: 1051 // (get) Token: 0x0600143C RID: 5180 RVA: 0x000092D0 File Offset: 0x000074D0 // (set) Token: 0x0600143D RID: 5181 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x1700041B")] public override long Position { [Token(Token = "0x600143C")] [Address(RVA = "0x8B9B80", Offset = "0x8B8B80", VA = "0x1808B9B80", Slot = "11")] get { return 0L; } [Token(Token = "0x600143D")] [Address(RVA = "0x8B9D30", Offset = "0x8B8D30", VA = "0x1808B9D30", Slot = "12")] set { } } /// Sets the length of the underlying stream. /// An value that specifies the length of the stream. // Token: 0x0600143E RID: 5182 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600143E")] [Address(RVA = "0x8B9430", Offset = "0x8B8430", VA = "0x1808B9430", 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: 0x0600143F RID: 5183 RVA: 0x000092E8 File Offset: 0x000074E8 [Token(Token = "0x600143F")] [Address(RVA = "0x8B93C0", Offset = "0x8B83C0", VA = "0x1808B93C0", Slot = "25")] public override long Seek(long offset, SeekOrigin origin) { return 0L; } // Token: 0x06001440 RID: 5184 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001440")] [Address(RVA = "0x8B92B0", Offset = "0x8B82B0", VA = "0x1808B92B0", Slot = "18")] public override Task FlushAsync(CancellationToken cancellationToken) { return null; } /// Causes any buffered data to be written to the underlying device. // Token: 0x06001441 RID: 5185 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001441")] [Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")] public override void Flush() { } // Token: 0x06001442 RID: 5186 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001442")] [Address(RVA = "0x8B8E50", Offset = "0x8B7E50", VA = "0x1808B8E50")] 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: 0x06001443 RID: 5187 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001443")] [Address(RVA = "0x8B8FE0", Offset = "0x8B7FE0", VA = "0x1808B8FE0", 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: 0x06001444 RID: 5188 RVA: 0x00009300 File Offset: 0x00007500 [Token(Token = "0x6001444")] [Address(RVA = "0x8B92F0", Offset = "0x8B82F0", VA = "0x1808B92F0", 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: 0x06001445 RID: 5189 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001445")] [Address(RVA = "0x8B9530", Offset = "0x8B8530", VA = "0x1808B9530", 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: 0x06001446 RID: 5190 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001446")] [Address(RVA = "0x8B8C90", Offset = "0x8B7C90", VA = "0x1808B8C90", 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: 0x06001447 RID: 5191 RVA: 0x00009318 File Offset: 0x00007518 [Token(Token = "0x6001447")] [Address(RVA = "0x8B90B0", Offset = "0x8B80B0", VA = "0x1808B90B0", 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: 0x06001448 RID: 5192 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001448")] [Address(RVA = "0x8B8D70", Offset = "0x8B7D70", VA = "0x1808B8D70", 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: 0x06001449 RID: 5193 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001449")] [Address(RVA = "0x8B91B0", Offset = "0x8B81B0", VA = "0x1808B91B0", Slot = "23")] public override void EndWrite(IAsyncResult asyncResult) { } // Token: 0x04000CD0 RID: 3280 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4000CD0")] private MonoTlsProvider provider; // Token: 0x04000CD1 RID: 3281 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4000CD1")] private IMonoSslStream impl; } }