Skip to content

Commit

Permalink
Merge branch 'release/1.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Podskubka, Stefan committed Dec 12, 2017
2 parents 6292489 + b32f8ba commit 539a23e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 5 deletions.
3 changes: 2 additions & 1 deletion RemoteTerminal/ChangelogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static class ChangelogManager
/// <summary>
/// The version of the most current changelog.
/// </summary>
private const string CurrentVersion = "1.9.1";
private const string CurrentVersion = "1.9.2";

/// <summary>
/// The name of the setting containing the last read changelog version.
Expand All @@ -39,6 +39,7 @@ public static class ChangelogManager
/// <remarks><see cref="CurrentVersion"/> must not be included in this list.</remarks>
private static readonly string[] PreviousVersions = new[]
{
"1.9.1",
"1.9.0",
"1.8.2",
};
Expand Down
9 changes: 9 additions & 0 deletions RemoteTerminal/Changelogs/1.9.2.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h2>1.9.2 (2017-12-11)</h2>
<p>
<b>Added support for more secure HMAC algorithms</b>
</p>
<p>
Until now only <b>hmac-md5</b> and <b>hmac-sha1</b> were supported.<br/>
This update adds support for <b>hmac-sha2-256</b> and <b>hmac-sha2-512</b> to support connections to servers that only accept SHA2 HMAC algorithms.<br/>
Additionally this may also increase security even when connecting to servers that still accept the less secure HMAC algorithms (if they also support and prefer the SHA2 HMAC algorithms).
</p>
2 changes: 1 addition & 1 deletion RemoteTerminal/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
<Identity Name="46436StefanPodskubka.RemoteTerminal" Publisher="CN=46536A2F-5D79-4B8A-8099-26E3FCC16743" Version="1.9.1.23" />
<Identity Name="46436StefanPodskubka.RemoteTerminal" Publisher="CN=46536A2F-5D79-4B8A-8099-26E3FCC16743" Version="1.9.2.24" />
<Properties>
<DisplayName>Remote Terminal</DisplayName>
<PublisherDisplayName>Stefan Podskubka</PublisherDisplayName>
Expand Down
4 changes: 2 additions & 2 deletions RemoteTerminal/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.1.23")]
[assembly: AssemblyFileVersion("1.9.1.23")]
[assembly: AssemblyVersion("1.9.2.24")]
[assembly: AssemblyFileVersion("1.9.2.24")]
[assembly: ComVisible(false)]
1 change: 1 addition & 0 deletions RemoteTerminal/RemoteTerminal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
<EmbeddedResource Include="Changelogs\tail.htm" />
<EmbeddedResource Include="Changelogs\1.9.0.htm" />
<EmbeddedResource Include="Changelogs\1.9.1.htm" />
<EmbeddedResource Include="Changelogs\1.9.2.htm" />
<Content Include="LICENSE.txt" />
<Page Include="ChangelogPage.xaml">
<SubType>Designer</SubType>
Expand Down
2 changes: 2 additions & 0 deletions SshNet/ConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public ConnectionInfo(string host, int port, Lazy<string> username, params Authe
{
{"hmac-md5", (key) => { return MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacMd5).CreateKey(CryptographicBuffer.CreateFromByteArray(key.Take(16).ToArray()));}},
{"hmac-sha1", (key) => { return MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha1).CreateKey(CryptographicBuffer.CreateFromByteArray(key.Take(20).ToArray()));}},
{"hmac-sha2-256", (key) => { return MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha256).CreateKey(CryptographicBuffer.CreateFromByteArray(key.Take(32).ToArray()));}},
{"hmac-sha2-512", (key) => { return MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha512).CreateKey(CryptographicBuffer.CreateFromByteArray(key.Take(64).ToArray()));}},
//{"umac-64@openssh.com", typeof(HMacSha1)},
//{"hmac-ripemd160", typeof(HMacSha1)},
//{"hmac-ripemd160@openssh.com", typeof(HMacSha1)},
Expand Down
2 changes: 1 addition & 1 deletion SshNet/Security/KeyExchange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ from a in message.MacAlgorithmsClientToServer
select a).FirstOrDefault();
if (string.IsNullOrEmpty(clientHmacAlgorithmName))
{
throw new SshConnectionException("Server HMAC algorithm not found", DisconnectReason.KeyExchangeFailed);
throw new SshConnectionException("Client HMAC algorithm not found", DisconnectReason.KeyExchangeFailed);
}

session.ConnectionInfo.CurrentClientHmacAlgorithm = clientHmacAlgorithmName;
Expand Down

0 comments on commit 539a23e

Please sign in to comment.