summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-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[])