From c64e52bb922c9eeae89a4df07bf334145c3018da Mon Sep 17 00:00:00 2001 From: Robert Hague Date: Sun, 2 Mar 2025 16:47:51 +0100 Subject: [PATCH] Fix API break on KeyExchange This type is public and a `private protected` ctor breaks subclassing outside the assembly --- src/Renci.SshNet/Security/KeyExchange.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Renci.SshNet/Security/KeyExchange.cs b/src/Renci.SshNet/Security/KeyExchange.cs index 1331098b0..8ae5c30a1 100644 --- a/src/Renci.SshNet/Security/KeyExchange.cs +++ b/src/Renci.SshNet/Security/KeyExchange.cs @@ -63,7 +63,10 @@ public byte[] ExchangeHash /// public event EventHandler HostKeyReceived; - private protected KeyExchange() + /// + /// Initializes a new instance of the class. + /// + protected KeyExchange() { _logger = SshNetLoggingConfiguration.LoggerFactory.CreateLogger(GetType()); }