diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-12 13:08:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-12 13:08:56 +0700 |
commit | be2efedefeb0c1dbdec780fbe76c96cb49c51c32 (patch) | |
tree | a915c4c98b7ccb5365d79ab7feb3d0dae551d347 | |
parent | Refactoring in Tls.Tests (diff) | |
download | BouncyCastle.NET-ed25519-be2efedefeb0c1dbdec780fbe76c96cb49c51c32.tar.xz |
TLS: Add AbstractTlsServer.GetDetailMessageNoCipherSuite method
-rw-r--r-- | crypto/src/tls/AbstractTlsServer.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/tls/AbstractTlsServer.cs b/crypto/src/tls/AbstractTlsServer.cs index 352002fbf..d986add52 100644 --- a/crypto/src/tls/AbstractTlsServer.cs +++ b/crypto/src/tls/AbstractTlsServer.cs @@ -62,6 +62,11 @@ namespace Org.BouncyCastle.Tls return false; } + protected virtual string GetDetailMessageNoCipherSuite() + { + return "No selectable cipher suite"; + } + protected virtual int GetMaximumNegotiableCurveBits() { int[] clientSupportedGroups = m_context.SecurityParameters.ClientSupportedGroups; @@ -429,7 +434,7 @@ namespace Org.BouncyCastle.Tls } } - throw new TlsFatalAlert(AlertDescription.handshake_failure, "No selectable cipher suite"); + throw new TlsFatalAlert(AlertDescription.handshake_failure, GetDetailMessageNoCipherSuite()); } // IDictionary is (Int32 -> byte[]) |