Skip to content

Commit bb3beeb

Browse files
authored
Fix API break on KeyExchange (#1609)
This type is public and a `private protected` ctor breaks subclassing outside the assembly
1 parent 071a8d5 commit bb3beeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Renci.SshNet/Security/KeyExchange.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public byte[] ExchangeHash
6363
/// </summary>
6464
public event EventHandler<HostKeyEventArgs> HostKeyReceived;
6565

66-
private protected KeyExchange()
66+
/// <summary>
67+
/// Initializes a new instance of the <see cref="KeyExchange"/> class.
68+
/// </summary>
69+
protected KeyExchange()
6770
{
6871
_logger = SshNetLoggingConfiguration.LoggerFactory.CreateLogger(GetType());
6972
}

0 commit comments

Comments
 (0)