Skip to content

Commit 5739ee1

Browse files
Remove a test that attemptes to use SSLv2
Even RabbitMQ versions that are a couple of years old won't accept SSLv3, so this SSLv2 test at this point is mostly a source of compiler warnings and not a realistic setup scenario.
1 parent 7e69311 commit 5739ee1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

projects/client/Unit/src/unit/TestSsl.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -110,29 +110,6 @@ public void TestServerVerified()
110110
SendReceive(cf);
111111
}
112112

113-
#if !NETFX_CORE
114-
[Test]
115-
public void TestVersionVerified()
116-
{
117-
string sslDir = IntegrationFixture.CertificatesDirectory();
118-
if (null == sslDir)
119-
{
120-
Console.WriteLine("SSL_CERT_DIR is not configured, skipping test");
121-
return;
122-
}
123-
124-
ConnectionFactory cf = new ConnectionFactory();
125-
cf.Ssl.Version = SslProtocols.Ssl2;
126-
cf.Ssl.AcceptablePolicyErrors = (SslPolicyErrors)~0;
127-
cf.Ssl.ServerName = "*";
128-
cf.Ssl.Enabled = true;
129-
Assert.Throws<BrokerUnreachableException>(() => SendReceive(cf));
130-
131-
cf.Ssl.Version = SslProtocols.Tls12;
132-
Assert.DoesNotThrow(() => SendReceive(cf));
133-
}
134-
#endif
135-
136113
[Test]
137114
public void TestClientAndServerVerified()
138115
{

0 commit comments

Comments
 (0)