2004-02-17 Carlos Guzm��n ��lvarez <carlosga@telefonica.net>
[mono.git] / mcs / class / Mono.Security / Mono.Security.Protocol.Tls / TlsCipherSuiteFactory.cs
index bdf25e3122a0347a232a8b2979b65fedc4ead2bb..9387cb2a476cafc0637d0222f307ccba03fe8bcd 100755 (executable)
@@ -32,14 +32,16 @@ namespace Mono.Security.Protocol.Tls
                {
                        switch (protocol)
                        {
+                               case SecurityProtocolType.Default:
+                               case SecurityProtocolType.Tls:                          
+                                       return TlsCipherSuiteFactory.GetTls1SupportedCiphers();
+
                                case SecurityProtocolType.Ssl3:
                                        return TlsCipherSuiteFactory.GetSsl3SupportedCiphers();
 
-                               case SecurityProtocolType.Tls:
-                                       return TlsCipherSuiteFactory.GetTls1SupportedCiphers();
-
+                               case SecurityProtocolType.Ssl2:
                                default:
-                                       throw new NotSupportedException();
+                                       throw new NotSupportedException("Unsupported security protocol type");
                        }
                }
 
@@ -165,4 +167,4 @@ namespace Mono.Security.Protocol.Tls
 
                #endregion
        }
-}
+}
\ No newline at end of file