Procházet zdrojové kódy

Fix API break on KeyExchange (#1609)

This type is public and a `private protected` ctor breaks subclassing outside the assembly
Rob Hague před 7 měsíci
rodič
revize
bb3beeb6c5
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/Renci.SshNet/Security/KeyExchange.cs

+ 4 - 1
src/Renci.SshNet/Security/KeyExchange.cs

@@ -63,7 +63,10 @@ namespace Renci.SshNet.Security
         /// </summary>
         public event EventHandler<HostKeyEventArgs> HostKeyReceived;
 
-        private protected KeyExchange()
+        /// <summary>
+        /// Initializes a new instance of the <see cref="KeyExchange"/> class.
+        /// </summary>
+        protected KeyExchange()
         {
             _logger = SshNetLoggingConfiguration.LoggerFactory.CreateLogger(GetType());
         }