Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

502 lines
29 KiB
C#

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
{
/// <summary>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.</summary>
// 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;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream" /> class using the specified <see cref="T:System.IO.Stream" />.</summary>
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="innerStream" /> is not readable.
/// -or-
/// <paramref name="innerStream" /> is not writable.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="innerStream" /> is <see langword="null" />.
/// -or-
/// <paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
// Token: 0x0600142D RID: 5165 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600142D")]
[Address(RVA = "0x8B9660", Offset = "0x8B8660", VA = "0x1808B9660")]
public SslStream(Stream innerStream)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream" /> class using the specified <see cref="T:System.IO.Stream" /> and stream closure behavior.</summary>
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data.</param>
/// <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="innerStream" /> is not readable.
/// -or-
/// <paramref name="innerStream" /> is not writable.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="innerStream" /> is <see langword="null" />.
/// -or-
/// <paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream" /> class using the specified <see cref="T:System.IO.Stream" />, stream closure behavior and certificate validation delegate.</summary>
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data.</param>
/// <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
/// <param name="userCertificateValidationCallback">A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" /> delegate responsible for validating the certificate supplied by the remote party.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="innerStream" /> is not readable.
/// -or-
/// <paramref name="innerStream" /> is not writable.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="innerStream" /> is <see langword="null" />.
/// -or-
/// <paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream" /> class using the specified <see cref="T:System.IO.Stream" />, stream closure behavior, certificate validation delegate and certificate selection delegate.</summary>
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data.</param>
/// <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.SslStream" /> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
/// <param name="userCertificateValidationCallback">A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" /> delegate responsible for validating the certificate supplied by the remote party.</param>
/// <param name="userCertificateSelectionCallback">A <see cref="T:System.Net.Security.LocalCertificateSelectionCallback" /> delegate responsible for selecting the certificate used for authentication.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="innerStream" /> is not readable.
/// -or-
/// <paramref name="innerStream" /> is not writable.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="innerStream" /> is <see langword="null" />.
/// -or-
/// <paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
// 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;
}
/// <summary>Called by clients to authenticate the server and optionally the client in a client-server connection.</summary>
/// <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="targetHost" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
/// -or-
/// Server authentication using this <see cref="T:System.Net.Security.SslStream" /> was tried previously.
/// -or-
/// Authentication is already in progress.</exception>
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
// 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)
{
}
/// <summary>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.</summary>
/// <param name="targetHost">The name of the server that will share this <see cref="T:System.Net.Security.SslStream" />.</param>
/// <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> that contains client certificates.</param>
/// <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols" /> value that represents the protocol used for authentication.</param>
/// <param name="checkCertificateRevocation">A <see cref="T:System.Boolean" /> value that specifies whether the certificate revocation list is checked during authentication.</param>
/// <returns>The task object representing the asynchronous operation.</returns>
// 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;
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether authentication was successful.</summary>
/// <returns>
/// <see langword="true" /> if successful authentication occurred; otherwise, <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is seekable.</summary>
/// <returns>This property always returns <see langword="false" />.</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);
}
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is readable.</summary>
/// <returns>
/// <see langword="true" /> if authentication has occurred and the underlying stream is readable; otherwise <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is writable.</summary>
/// <returns>
/// <see langword="true" /> if authentication has occurred and the underlying stream is writable; otherwise <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Gets or sets the amount of time a read operation blocks waiting for data.</summary>
/// <returns>The amount of time that elapses before a synchronous read operation fails.</returns>
// 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;
}
}
/// <summary>Gets or sets the amount of time a write operation blocks waiting for data.</summary>
/// <returns>The amount of time that elapses before a synchronous write operation fails.</returns>
// 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;
}
}
/// <summary>Gets the length of the underlying stream.</summary>
/// <returns>The length of the underlying stream.</returns>
/// <exception cref="T:System.NotSupportedException">Getting the value of this property is not supported when the underlying stream is a <see cref="T:System.Net.Sockets.NetworkStream" />.</exception>
// 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;
}
}
/// <summary>Gets or sets the current position in the underlying stream.</summary>
/// <returns>The current position in the underlying stream.</returns>
/// <exception cref="T:System.NotSupportedException">Setting this property is not supported.
/// -or-
/// Getting the value of this property is not supported when the underlying stream is a <see cref="T:System.Net.Sockets.NetworkStream" />.</exception>
// 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
{
}
}
/// <summary>Sets the length of the underlying stream.</summary>
/// <param name="value">An <see cref="T:System.Int64" /> value that specifies the length of the stream.</param>
// 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)
{
}
/// <summary>Throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="offset">This value is ignored.</param>
/// <param name="origin">This value is ignored.</param>
/// <returns>Always throws a <see cref="T:System.NotSupportedException" />.</returns>
/// <exception cref="T:System.NotSupportedException">Seeking is not supported by <see cref="T:System.Net.Security.SslStream" /> objects.</exception>
// 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;
}
/// <summary>Causes any buffered data to be written to the underlying device.</summary>
// 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()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.SslStream" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// 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)
{
}
/// <summary>Reads data from this stream and stores it in the specified array.</summary>
/// <param name="buffer">A <see cref="T:System.Byte" /> array that receives the bytes read from this stream.</param>
/// <param name="offset">A <see cref="T:System.Int32" /> that contains the zero-based location in <paramref name="buffer" /> at which to begin storing the data read from this stream.</param>
/// <param name="count">A <see cref="T:System.Int32" /> that contains the maximum number of bytes to read from this stream.</param>
/// <returns>A <see cref="T:System.Int32" /> value that specifies the number of bytes read. When there is no more data to be read, returns 0.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" />
/// <paramref name="&lt;" />
/// <paramref name="0" />.
/// <paramref name="-or-" /><paramref name="offset" /> &gt; the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="offset" /> + count &gt; the length of <paramref name="buffer" />.</exception>
/// <exception cref="T:System.IO.IOException">The read operation failed. Check the inner exception, if present to determine the cause of the failure.</exception>
/// <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
// 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;
}
/// <summary>Write the specified number of <see cref="T:System.Byte" />s to the underlying stream using the specified buffer and offset.</summary>
/// <param name="buffer">A <see cref="T:System.Byte" /> array that supplies the bytes written to the stream.</param>
/// <param name="offset">A <see cref="T:System.Int32" /> that contains the zero-based location in <paramref name="buffer" /> at which to begin reading bytes to be written to the stream.</param>
/// <param name="count">A <see cref="T:System.Int32" /> that contains the number of bytes to read from <paramref name="buffer" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" />
/// <paramref name="&lt;" />
/// <paramref name="0" />.
/// <paramref name="-or-" /><paramref name="offset" /> &gt; the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="offset" /> + count &gt; the length of <paramref name="buffer" />.</exception>
/// <exception cref="T:System.IO.IOException">The write operation failed.</exception>
/// <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
// 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)
{
}
/// <summary>Begins an asynchronous read operation that reads data from the stream and stores it in the specified array.</summary>
/// <param name="buffer">A <see cref="T:System.Byte" /> array that receives the bytes read from the stream.</param>
/// <param name="offset">The zero-based location in <paramref name="buffer" /> at which to begin storing the data read from this stream.</param>
/// <param name="count">The maximum number of bytes to read from the stream.</param>
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the read operation is complete.</param>
/// <param name="asyncState">A user-defined object that contains information about the read operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> object that indicates the status of the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" />
/// <paramref name="&lt;" />
/// <paramref name="0" />.
/// <paramref name="-or-" /><paramref name="offset" /> &gt; the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="offset" /> + count &gt; the length of <paramref name="buffer" />.</exception>
/// <exception cref="T:System.IO.IOException">The read operation failed.
/// -or-
/// Encryption is in use, but the data could not be decrypted.</exception>
/// <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
// 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;
}
/// <summary>Ends an asynchronous read operation started with a previous call to <see cref="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /></param>
/// <returns>A <see cref="T:System.Int32" /> value that specifies the number of bytes read from the underlying stream.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not created by a call to <see cref="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</exception>
/// <exception cref="T:System.InvalidOperationException">There is no pending read operation to complete.
/// -or-
/// Authentication has not occurred.</exception>
/// <exception cref="T:System.IO.IOException">The read operation failed.</exception>
// 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;
}
/// <summary>Begins an asynchronous write operation that writes <see cref="T:System.Byte" />s from the specified buffer to the stream.</summary>
/// <param name="buffer">A <see cref="T:System.Byte" /> array that supplies the bytes to be written to the stream.</param>
/// <param name="offset">The zero-based location in <paramref name="buffer" /> at which to begin reading bytes to be written to the stream.</param>
/// <param name="count">An <see cref="T:System.Int32" /> value that specifies the number of bytes to read from <paramref name="buffer" />.</param>
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the write operation is complete.</param>
/// <param name="asyncState">A user-defined object that contains information about the write operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" />
/// <paramref name="&lt;" />
/// <paramref name="0" />.
/// <paramref name="-or-" /><paramref name="offset" /> &gt; the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="offset" /> + count &gt; the length of <paramref name="buffer" />.</exception>
/// <exception cref="T:System.IO.IOException">The write operation failed.</exception>
/// <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
// 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;
}
/// <summary>Ends an asynchronous write operation started with a previous call to <see cref="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /></param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not created by a call to <see cref="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</exception>
/// <exception cref="T:System.InvalidOperationException">There is no pending write operation to complete.
/// -or-
/// Authentication has not occurred.</exception>
/// <exception cref="T:System.IO.IOException">The write operation failed.</exception>
// 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;
}
}