summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-12 13:08:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-12 13:08:56 +0700
commitbe2efedefeb0c1dbdec780fbe76c96cb49c51c32 (patch)
treea915c4c98b7ccb5365d79ab7feb3d0dae551d347
parentRefactoring in Tls.Tests (diff)
downloadBouncyCastle.NET-ed25519-be2efedefeb0c1dbdec780fbe76c96cb49c51c32.tar.xz
TLS: Add AbstractTlsServer.GetDetailMessageNoCipherSuite method
-rw-r--r--crypto/src/tls/AbstractTlsServer.cs7
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[])