From be2efedefeb0c1dbdec780fbe76c96cb49c51c32 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 12 Jul 2023 13:08:56 +0700 Subject: TLS: Add AbstractTlsServer.GetDetailMessageNoCipherSuite method --- crypto/src/tls/AbstractTlsServer.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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[]) -- cgit 1.4.1