-
-
Couldn't load subscription status.
- Fork 965
Enable trim analysis and fix warnings #1216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6813bbf
Enable trim analysis and fix warnings
Rob-Hague ea49f13
Use EnableTrimAnalyzer instead of IsTrimmable
Rob-Hague 839ec70
Merge remote-tracking branch 'upstream/develop' into trimming
Rob-Hague d0f9180
Merge remote-tracking branch 'upstream/develop' into trimming
Rob-Hague 9abb605
Add additional aot/trimming related analyzers
Rob-Hague 1e5d52b
Merge branch 'develop' into trimming
WojciechNagorski 1d1ef81
Merge remote-tracking branch 'upstream/develop' into trimming
Rob-Hague 0971717
Merge branch 'develop' into trimming
WojciechNagorski a344ebe
Initialise the hash instance in the constructor
Rob-Hague File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
|
|
||
| using Renci.SshNet.Abstractions; | ||
| using Renci.SshNet.Common; | ||
| using Renci.SshNet.Compression; | ||
| using Renci.SshNet.Messages.Authentication; | ||
| using Renci.SshNet.Messages.Connection; | ||
| using Renci.SshNet.Security; | ||
|
|
@@ -46,7 +47,7 @@ public class ConnectionInfo : IConnectionInfoInternal | |
| /// <summary> | ||
| /// Gets supported key exchange algorithms for this connection. | ||
| /// </summary> | ||
| public IDictionary<string, Type> KeyExchangeAlgorithms { get; private set; } | ||
| public IDictionary<string, Func<IKeyExchange>> KeyExchangeAlgorithms { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets supported encryptions for this connection. | ||
|
|
@@ -71,7 +72,7 @@ public class ConnectionInfo : IConnectionInfoInternal | |
| /// <summary> | ||
| /// Gets supported compression algorithms for this connection. | ||
| /// </summary> | ||
| public IDictionary<string, Type> CompressionAlgorithms { get; private set; } | ||
| public IDictionary<string, Func<Compressor>> CompressionAlgorithms { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the supported channel requests for this connection. | ||
|
|
@@ -337,19 +338,19 @@ public ConnectionInfo(string host, int port, string username, ProxyTypes proxyTy | |
| MaxSessions = 10; | ||
| Encoding = Encoding.UTF8; | ||
|
|
||
| KeyExchangeAlgorithms = new Dictionary<string, Type> | ||
| KeyExchangeAlgorithms = new Dictionary<string, Func<IKeyExchange>> | ||
| { | ||
| { "curve25519-sha256", typeof(KeyExchangeECCurve25519) }, | ||
| { "[email protected]", typeof(KeyExchangeECCurve25519) }, | ||
| { "ecdh-sha2-nistp256", typeof(KeyExchangeECDH256) }, | ||
| { "ecdh-sha2-nistp384", typeof(KeyExchangeECDH384) }, | ||
| { "ecdh-sha2-nistp521", typeof(KeyExchangeECDH521) }, | ||
| { "diffie-hellman-group-exchange-sha256", typeof(KeyExchangeDiffieHellmanGroupExchangeSha256) }, | ||
| { "diffie-hellman-group-exchange-sha1", typeof(KeyExchangeDiffieHellmanGroupExchangeSha1) }, | ||
| { "diffie-hellman-group16-sha512", typeof(KeyExchangeDiffieHellmanGroup16Sha512) }, | ||
| { "diffie-hellman-group14-sha256", typeof(KeyExchangeDiffieHellmanGroup14Sha256) }, | ||
| { "diffie-hellman-group14-sha1", typeof(KeyExchangeDiffieHellmanGroup14Sha1) }, | ||
| { "diffie-hellman-group1-sha1", typeof(KeyExchangeDiffieHellmanGroup1Sha1) }, | ||
| { "curve25519-sha256", () => new KeyExchangeECCurve25519() }, | ||
| { "[email protected]", () => new KeyExchangeECCurve25519() }, | ||
| { "ecdh-sha2-nistp256", () => new KeyExchangeECDH256() }, | ||
| { "ecdh-sha2-nistp384", () => new KeyExchangeECDH384() }, | ||
| { "ecdh-sha2-nistp521", () => new KeyExchangeECDH521() }, | ||
| { "diffie-hellman-group-exchange-sha256", () => new KeyExchangeDiffieHellmanGroupExchangeSha256() }, | ||
| { "diffie-hellman-group-exchange-sha1", () => new KeyExchangeDiffieHellmanGroupExchangeSha1() }, | ||
| { "diffie-hellman-group16-sha512", () => new KeyExchangeDiffieHellmanGroup16Sha512() }, | ||
| { "diffie-hellman-group14-sha256", () => new KeyExchangeDiffieHellmanGroup14Sha256() }, | ||
| { "diffie-hellman-group14-sha1", () => new KeyExchangeDiffieHellmanGroup14Sha1() }, | ||
| { "diffie-hellman-group1-sha1", () => new KeyExchangeDiffieHellmanGroup1Sha1() }, | ||
| }; | ||
|
|
||
| Encryptions = new Dictionary<string, CipherInfo> | ||
|
|
@@ -402,7 +403,7 @@ public ConnectionInfo(string host, int port, string username, ProxyTypes proxyTy | |
| { "ssh-dss", data => new KeyHostAlgorithm("ssh-dss", new DsaKey(new SshKeyData(data))) }, | ||
| }; | ||
|
|
||
| CompressionAlgorithms = new Dictionary<string, Type> | ||
| CompressionAlgorithms = new Dictionary<string, Func<Compressor>> | ||
| { | ||
| { "none", null }, | ||
| }; | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.