< Summary

Line coverage
9%
Covered lines: 193
Uncovered lines: 1942
Coverable lines: 2135
Total lines: 3899
Line coverage: 9%
Branch coverage
7%
Covered branches: 63
Total branches: 839
Branch coverage: 7.5%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .cctor()100%11100%
File 1: .ctor(...)50%8881.81%
File 1: .ctor()100%11100%
File 1: DecryptedReadOnlySpanSliced(...)100%110%
File 1: EncryptedSpanSliced(...)100%110%
File 1: Commit(...)100%11100%
File 1: EnsureAvailableSpace(...)100%11100%
File 1: Discard(...)0%220%
File 1: DiscardEncrypted(...)100%110%
File 1: OnDecrypted(...)0%220%
File 1: ReturnBuffer()100%11100%
File 1: .ctor(...)100%11100%
File 1: .ctor(...)100%110%
File 1: .ctor(...)100%110%
File 1: .ctor(...)100%11100%
File 1: BeginAuthenticateAsClient(...)100%110%
File 1: BeginAuthenticateAsClient(...)100%110%
File 1: BeginAuthenticateAsClient(...)0%220%
File 1: BeginAuthenticateAsClient(...)100%110%
File 1: EndAuthenticateAsClient(...)100%110%
File 1: BeginAuthenticateAsServer(...)100%110%
File 1: BeginAuthenticateAsServer(...)100%110%
File 1: BeginAuthenticateAsServer(...)0%220%
File 1: BeginAuthenticateAsServer(...)100%110%
File 1: EndAuthenticateAsServer(...)100%110%
File 1: AuthenticateAsClient(...)100%110%
File 1: AuthenticateAsClient(...)100%110%
File 1: AuthenticateAsClient(...)0%220%
File 1: AuthenticateAsClient(...)100%110%
File 1: AuthenticateAsServer(...)100%110%
File 1: AuthenticateAsServer(...)100%110%
File 1: AuthenticateAsServer(...)0%220%
File 1: AuthenticateAsServer(...)100%110%
File 1: AuthenticateAsClientAsync(...)100%110%
File 1: AuthenticateAsClientAsync(...)100%110%
File 1: AuthenticateAsClientAsync(...)0%220%
File 1: AuthenticateAsClientAsync(...)100%110%
File 1: AuthenticateAsServerAsync(...)100%110%
File 1: AuthenticateAsServerAsync(...)0%220%
File 1: AuthenticateAsServerAsync(...)0%220%
File 1: AuthenticateAsServerAsync(...)100%110%
File 1: AuthenticateAsServerAsync(...)100%11100%
File 1: ShutdownAsync()0%440%
File 1: GetSslProtocolInternal()0%14140%
File 1: SetLength(...)100%110%
File 1: Seek(...)100%110%
File 1: Flush()100%110%
File 1: FlushAsync(...)100%110%
File 1: NegotiateClientCertificateAsync(...)0%220%
File 1: Dispose(...)100%11100%
File 1: DisposeAsync()0%440%
File 1: RentPointerMemoryManager(...)0%220%
File 1: ReturnPointerMemoryManager(...)100%110%
File 1: ReadByte()0%880%
File 1: Read(...)100%110%
File 1: Read(...)100%110%
File 1: WriteByte(...)100%110%
File 1: Write(...)100%110%
File 1: Write(...)100%110%
File 1: Write(...)100%110%
File 1: BeginRead(...)100%110%
File 1: EndRead(...)100%110%
File 1: BeginWrite(...)100%110%
File 1: EndWrite(...)100%110%
File 1: WriteAsync(...)100%110%
File 1: WriteAsync(...)100%110%
File 1: ReadAsync(...)100%110%
File 1: ReadAsync(...)100%110%
File 1: ThrowIfExceptional()50%2257.14%
File 1: ThrowExceptional(System.Runtime.ExceptionServices.ExceptionDispatchInfo)100%110%
File 1: ThrowIfExceptionalOrNotAuthenticated()0%220%
File 1: ThrowIfExceptionalOrNotHandshake()0%220%
File 1: ThrowIfExceptionalOrNotAuthenticatedOrShutdown()0%440%
File 1: ThrowAlreadyShutdown()100%110%
File 1: ThrowNotAuthenticated()100%110%
File 1: Dispose(...)100%110%
File 1: Reset(...)100%110%
File 1: GetSpan()100%110%
File 1: Pin(...)100%110%
File 1: Unpin()100%110%
File 2: .ctor(...)100%11100%
File 2: SetException(...)0%220%
File 2: CloseInternal()40%101070%
File 2: ProcessAuthenticationAsync(...)50%4480%
File 2: ProcessAuthenticationWithTelemetryAsync(...)0%880%
File 2: ReplyOnReAuthenticationAsync(...)100%110%
File 2: RenegotiateAsync(...)0%24240%
File 2: ForceAuthenticationAsync(...)15.38%525227.65%
File 2: ReceiveHandshakeFrameAsync(...)44.44%545446.37%
File 2: ProcessTlsFrame(...)0%14140%
File 2: SendAuthResetSignal(...)0%220%
File 2: CompleteHandshake(...)0%880%
File 2: CompleteHandshake(...)0%220%
File 2: CreateCertificateValidationException(...)0%660%
File 2: WriteAsyncChunked(...)0%220%
File 2: WriteSingleChunk(...)0%10100%
File 2: WaitAndWriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.Tasks.Task,System.Threading.CancellationToken)0%440%
File 2: CompleteWriteAsync(System.Threading.Tasks.ValueTask,System.Net.Security.ProtocolToken)100%110%
File 2: Finalize()100%110%
File 2: ReturnReadBufferIfEmpty()0%220%
File 2: HaveFullTlsFrame(...)100%11100%
File 2: EnsureFullTlsFrameAsync()71.42%141488.88%
File 2: ReadAsyncInternal()0%48480%
File 2: WriteAsyncInternal(...)0%14140%
File 2: CopyDecryptedData(...)0%220%
File 2: GetFrameSize(...)83.33%66100%
File 3: .ctor(...)100%11100%
File 3: .cctor()100%11100%
File 3: GetChannelBinding(...)0%220%
File 3: CloseContext()50%88100%
File 3: ReleaseCachedCredentials()50%22100%
File 3: FindCertificateWithPrivateKey(...)0%20200%
File 3: MakeEx(...)0%440%
File 3: GetRequestCertificateAuthorities()0%220%
File 3: SelectClientCertificate()0%94940%
File 3: AcquireClientCredentials(...)0%22220%
File 3: UpdateCertificateContext(System.Security.Cryptography.X509Certificates.X509Certificate2)0%440%
File 3: EnsureInitialized(...)0%220%
File 3: AcquireServerCredentials(...)0%30300%
File 3: AcquireCredentialsHandle(...)0%660%
File 3: GetExpiryTimestamp(System.Net.Security.SslStreamCertificateContext)0%440%
File 3: NextMessage(...)0%12120%
File 3: GenerateToken(...)0%36360%
File 3: Renegotiate()100%110%
File 3: ProcessHandshakeSuccess()0%220%
File 3: EncryptData(...)0%880%
File 3: DecryptData(...)0%16160%
File 3: VerifyRemoteCertificate(...)0%14140%
File 3: VerifyRemoteCertificateCore(...)0%66660%
File 3: CreateFatalHandshakeAlertToken(...)0%13130%
File 3: CreateShutdownToken()0%660%
File 3: GenerateAlertToken()100%110%
File 3: GetAlertMessageFromChain(...)0%14140%
File 3: LogCertificateValidation(...)0%18180%
File 4: EnsureTlsSession()0%220%
File 4: TryNextMessageViaTlsSession(...)0%30300%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Protocol.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Protocol.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.TlsSessionWedge.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.TlsSessionWedge.cs': Response status code does not indicate success: 404 (Not Found).

Methods/Properties

.cctor()
.ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback,System.Net.Security.EncryptionPolicy)
.ctor()
IsValid()
DecryptedSpan()
DecryptedReadOnlySpanSliced(System.Int32)
DecryptedLength()
ActiveLength()
EncryptedSpanSliced(System.Int32)
EncryptedReadOnlySpan()
EncryptedLength()
AvailableMemory()
AvailableLength()
Commit(System.Int32)
EnsureAvailableSpace(System.Int32)
Discard(System.Int32)
DiscardEncrypted(System.Int32)
OnDecrypted(System.Int32,System.Int32,System.Int32)
ReturnBuffer()
.ctor(System.IO.Stream)
.ctor(System.IO.Stream,System.Boolean)
.ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback)
.ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback)
BeginAuthenticateAsClient(System.String,System.AsyncCallback,System.Object)
BeginAuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean,System.AsyncCallback,System.Object)
BeginAuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean,System.AsyncCallback,System.Object)
BeginAuthenticateAsClient(System.Net.Security.SslClientAuthenticationOptions,System.Threading.CancellationToken,System.AsyncCallback,System.Object)
EndAuthenticateAsClient(System.IAsyncResult)
BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.AsyncCallback,System.Object)
BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean,System.AsyncCallback,System.Object)
BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean,System.AsyncCallback,System.Object)
BeginAuthenticateAsServer(System.Net.Security.SslServerAuthenticationOptions,System.Threading.CancellationToken,System.AsyncCallback,System.Object)
EndAuthenticateAsServer(System.IAsyncResult)
TransportContext()
AuthenticateAsClient(System.String)
AuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean)
AuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean)
AuthenticateAsClient(System.Net.Security.SslClientAuthenticationOptions)
AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate)
AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean)
AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean)
AuthenticateAsServer(System.Net.Security.SslServerAuthenticationOptions)
AuthenticateAsClientAsync(System.String)
AuthenticateAsClientAsync(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean)
AuthenticateAsClientAsync(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean)
AuthenticateAsClientAsync(System.Net.Security.SslClientAuthenticationOptions,System.Threading.CancellationToken)
AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate)
AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean)
AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean)
AuthenticateAsServerAsync(System.Net.Security.SslServerAuthenticationOptions,System.Threading.CancellationToken)
AuthenticateAsServerAsync(System.Net.Security.ServerOptionsSelectionCallback,System.Object,System.Threading.CancellationToken)
ShutdownAsync()
IsAuthenticated()
IsMutuallyAuthenticated()
IsEncrypted()
IsSigned()
IsServer()
SslProtocol()
GetSslProtocolInternal()
CheckCertRevocationStatus()
LocalCertificate()
RemoteCertificate()
NegotiatedApplicationProtocol()
NegotiatedCipherSuite()
CipherAlgorithm()
CipherStrength()
HashAlgorithm()
HashStrength()
KeyExchangeAlgorithm()
KeyExchangeStrength()
TargetHostName()
CanSeek()
CanRead()
CanTimeout()
CanWrite()
ReadTimeout()
ReadTimeout(System.Int32)
WriteTimeout()
WriteTimeout(System.Int32)
Length()
Position()
Position(System.Int64)
SetLength(System.Int64)
Seek(System.Int64,System.IO.SeekOrigin)
Flush()
FlushAsync(System.Threading.CancellationToken)
NegotiateClientCertificateAsync(System.Threading.CancellationToken)
Dispose(System.Boolean)
DisposeAsync()
RentPointerMemoryManager(System.Net.Security.SslStream/PoolingPointerMemoryManager&,System.Byte*,System.Int32)
ReturnPointerMemoryManager(System.Net.Security.SslStream/PoolingPointerMemoryManager&,System.Net.Security.SslStream/PoolingPointerMemoryManager)
ReadByte()
Read(System.Span`1<System.Byte>)
Read(System.Byte[],System.Int32,System.Int32)
WriteByte(System.Byte)
Write(System.ReadOnlySpan`1<System.Byte>)
Write(System.Byte[])
Write(System.Byte[],System.Int32,System.Int32)
BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)
EndRead(System.IAsyncResult)
BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)
EndWrite(System.IAsyncResult)
WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
ReadAsync(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
ThrowIfExceptional()
ThrowExceptional(System.Runtime.ExceptionServices.ExceptionDispatchInfo)
ThrowIfExceptionalOrNotAuthenticated()
ThrowIfExceptionalOrNotHandshake()
ThrowIfExceptionalOrNotAuthenticatedOrShutdown()
ThrowAlreadyShutdown()
ThrowNotAuthenticated()
Dispose(System.Boolean)
Reset(System.Byte*,System.Int32)
GetSpan()
Pin(System.Int32)
Unpin()
.ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback,System.Net.Security.EncryptionPolicy)
InnerStream()
_handshakeLock()
SetException(System.Exception)
CloseInternal()
ProcessAuthenticationAsync(System.Boolean,System.Threading.CancellationToken)
ProcessAuthenticationWithTelemetryAsync(System.Boolean,System.Threading.CancellationToken)
ReplyOnReAuthenticationAsync(System.Byte[],System.Threading.CancellationToken)
RenegotiateAsync(System.Threading.CancellationToken)
ForceAuthenticationAsync(System.Boolean,System.Byte[],System.Threading.CancellationToken)
ReceiveHandshakeFrameAsync(System.Threading.CancellationToken)
ProcessTlsFrame(System.Int32)
SendAuthResetSignal(System.ReadOnlySpan`1<System.Byte>,System.Runtime.ExceptionServices.ExceptionDispatchInfo)
CompleteHandshake(System.Net.Security.ProtocolToken&,System.Net.Security.SslPolicyErrors&,System.Security.Cryptography.X509Certificates.X509ChainStatusFlags&)
CompleteHandshake(System.Net.Security.SslAuthenticationOptions)
CreateCertificateValidationException(System.Net.Security.SslAuthenticationOptions,System.Net.Security.SslPolicyErrors,System.Security.Cryptography.X509Certificates.X509ChainStatusFlags)
WriteAsyncChunked(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
WriteSingleChunk(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
WaitAndWriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.Tasks.Task,System.Threading.CancellationToken)
CompleteWriteAsync(System.Threading.Tasks.ValueTask,System.Net.Security.ProtocolToken)
Finalize()
ReturnReadBufferIfEmpty()
HaveFullTlsFrame(System.Int32&)
EnsureFullTlsFrameAsync()
ReadAsyncInternal()
WriteAsyncInternal(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
CopyDecryptedData(System.Memory`1<System.Byte>)
GetFrameSize(System.ReadOnlySpan`1<System.Byte>)
.ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback,System.Net.Security.EncryptionPolicy)
.cctor()
LocalServerCertificate()
IsLocalClientCertificateUsed()
LocalClientCertificate()
IsRemoteCertificateAvailable()
GetChannelBinding(System.Security.Authentication.ExtendedProtection.ChannelBindingKind)
MaxDataSize()
IsValidContext()
CloseContext()
ReleaseCachedCredentials()
FindCertificateWithPrivateKey(System.Object,System.Boolean,System.Security.Cryptography.X509Certificates.X509Certificate)
MakeEx(System.Security.Cryptography.X509Certificates.X509Certificate)
GetRequestCertificateAuthorities()
SelectClientCertificate()
AcquireClientCredentials(System.Byte[]&,System.Boolean)
UpdateCertificateContext(System.Security.Cryptography.X509Certificates.X509Certificate2)
EnsureInitialized(System.Collections.Generic.List`1<T>&)
AcquireServerCredentials(System.Byte[]&)
AcquireCredentialsHandle(System.Net.Security.SslAuthenticationOptions,System.Boolean)
GetExpiryTimestamp(System.Net.Security.SslStreamCertificateContext)
NextMessage(System.ReadOnlySpan`1<System.Byte>,System.Int32&)
GenerateToken(System.ReadOnlySpan`1<System.Byte>,System.Int32&)
Renegotiate()
ProcessHandshakeSuccess()
EncryptData(System.ReadOnlyMemory`1<System.Byte>)
DecryptData(System.Int32,System.Span`1<System.Byte>,System.Int32&)
VerifyRemoteCertificate(System.Net.Security.SslCertificateTrust,System.Net.Security.ProtocolToken&,System.Net.Security.SslPolicyErrors&,System.Security.Cryptography.X509Certificates.X509ChainStatusFlags&)
VerifyRemoteCertificateCore(System.Object,System.Boolean,System.Net.Security.SslAuthenticationOptions,System.Net.Security.SafeDeleteSslContext,System.Security.Cryptography.X509Certificates.X509Certificate2&,System.Net.Security.SslConnectionInfo&,System.Security.Cryptography.X509Certificates.X509Certificate2,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslCertificateTrust,System.Net.Security.ProtocolToken&,System.Net.Security.SslPolicyErrors&,System.Security.Cryptography.X509Certificates.X509ChainStatusFlags&,System.Boolean&,System.Security.Cryptography.X509Certificates.X509Certificate2Collection,System.Boolean)
CreateFatalHandshakeAlertToken(System.Net.Security.SslPolicyErrors,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.ProtocolToken&)
CreateShutdownToken()
GenerateAlertToken()
GetAlertMessageFromChain(System.Security.Cryptography.X509Certificates.X509Chain)
LogCertificateValidation(System.Object,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.SslPolicyErrors,System.Boolean,System.Security.Cryptography.X509Certificates.X509Chain)
EnsureTlsSession()
TryNextMessageViaTlsSession(System.ReadOnlySpan`1<System.Byte>,System.Net.Security.ProtocolToken&,System.Int32&)