-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
54 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "Chaos.NaCl"] | ||
path = Chaos.NaCl | ||
url = https://github.com/CodesInChaos/Chaos.NaCl | ||
[submodule "SSH.NET"] | ||
path = SSH.NET | ||
url = https://github.com/darinkes/SSH.NET-1.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule SSH.NET
deleted from
f7fad2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
using Renci.SshNet; | ||
using System.Collections.Generic; | ||
using Renci.SshNet; | ||
using Renci.SshNet.Security; | ||
|
||
namespace SshNet.Keygen | ||
{ | ||
public class PrivateGeneratedKey : IPrivateKeyFile | ||
public class PrivateGeneratedKey : IPrivateKeySource | ||
{ | ||
public HostAlgorithm HostKey { get; } | ||
private readonly List<HostAlgorithm> _hostAlgorithms = new(); | ||
|
||
public IReadOnlyCollection<HostAlgorithm> HostKeyAlgorithms => _hostAlgorithms; | ||
|
||
public Key Key { get; } | ||
|
||
public PrivateGeneratedKey(Key key) | ||
{ | ||
HostKey = new KeyHostAlgorithm(key.ToString(), key); | ||
Key = key; | ||
_hostAlgorithms.Add(new KeyHostAlgorithm(key.ToString(), key)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters