diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-10 18:50:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-10 18:50:04 +0700 |
commit | 0f27ab94ef24d4c787a98226ca68e04b72c2b433 (patch) | |
tree | dfdfaff15da1de63c420b9d34b0befb05b5c683d /crypto/src/tls/TlsUtilities.cs | |
parent | Improve TLS handshake hash tracking (diff) | |
download | BouncyCastle.NET-ed25519-0f27ab94ef24d4c787a98226ca68e04b72c2b433.tar.xz |
Test config for ClientHello sig algs
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r-- | crypto/src/tls/TlsUtilities.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs index 076aaf535..f6e509b7d 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs @@ -1068,10 +1068,15 @@ namespace Org.BouncyCastle.Tls public static IList GetDefaultSupportedSignatureAlgorithms(TlsContext context) { + return GetSupportedSignatureAlgorithms(context, DefaultSupportedSigAlgs); + } + + public static IList GetSupportedSignatureAlgorithms(TlsContext context, IList candidates) + { TlsCrypto crypto = context.Crypto; IList result = Platform.CreateArrayList(DefaultSupportedSigAlgs.Count); - foreach (SignatureAndHashAlgorithm sigAndHashAlg in DefaultSupportedSigAlgs) + foreach (SignatureAndHashAlgorithm sigAndHashAlg in candidates) { AddIfSupported(result, crypto, sigAndHashAlg); } |