{
X509CertificateCollection tempCollection = new X509CertificateCollection();
tempCollection.Add(_sslAuthenticationOptions.CertificateContext!.Certificate!);
- // We pass string.Empty here to maintain strict compatability with .NET Framework.
+ // We pass string.Empty here to maintain strict compatibility with .NET Framework.
localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(string.Empty, tempCollection, null, Array.Empty<string>());
if (localCertificate == null)
{
if (selectedCert == null)
{
- // We will get here if vertificate was slected via legacy callback using X509Certificate
+ // We will get here if certificate was selected via legacy callback using X509Certificate
// Fail immediately if no certificate was given.
if (localCertificate == null)
{
private enum Framing
{
- Unknown = 0, // Initial before any frame is processd.
+ Unknown = 0, // Initial before any frame is processed.
BeforeSSL3, // SSlv2
SinceSSL3, // SSlv3 & TLS
Unified, // Intermediate on first frame until response is processes.
Dispose(disposing: false);
}
- //We will only free the read buffer if it
- //actually contains no decrypted or encrypted bytes
+ // We will only free the read buffer if it
+ // actually contains no decrypted or encrypted bytes
private void ReturnReadBufferIfEmpty()
{
if (_internalBuffer != null && _decryptedBytesCount == 0 && _internalBufferCount == 0)