You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2010/05/31 11:50:26 UTC

svn commit: r949699 - /mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java

Author: elecharny
Date: Mon May 31 09:50:26 2010
New Revision: 949699

URL: http://svn.apache.org/viewvc?rev=949699&view=rev
Log:
Added a workaround for the newly TLS renegotiation issue - it's forbidden by default in the latest JVM -

Modified:
    mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java

Modified: mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java
URL: http://svn.apache.org/viewvc/mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java?rev=949699&r1=949698&r2=949699&view=diff
==============================================================================
--- mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java (original)
+++ mina/trunk/example/src/test/java/org/apache/mina/example/echoserver/ssl/SslFilterTest.java Mon May 31 09:50:26 2010
@@ -77,6 +77,9 @@ public class SslFilterTest {
     }
 
     private void testMessageSentIsCalled(boolean useSSL) throws Exception {
+        // Workaround to fix TLS issue : http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html
+        java.lang.System.setProperty( "sun.security.ssl.allowUnsafeRenegotiation", "true" );
+
         SslFilter sslFilter = null;
         if (useSSL) {
             sslFilter = new SslFilter(BogusSslContextFactory.getInstance(true));