Fix spelling errors in SslStream (#42662)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Thu, 24 Sep 2020 13:13:04 +0000 (06:13 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 13:13:04 +0000 (09:13 -0400)
src/libraries/System.Net.Security/src/System/Net/Security/SecureChannel.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs

index f37042c..bcc6b16 100644 (file)
@@ -657,7 +657,7 @@ namespace System.Net.Security
             {
                 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)
                 {
@@ -676,7 +676,7 @@ namespace System.Net.Security
 
             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)
                 {
index 74fb33e..e2b6f1f 100644 (file)
@@ -22,7 +22,7 @@ namespace System.Net.Security
 
         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.
@@ -761,8 +761,8 @@ namespace System.Net.Security
             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)