james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r951041 - /james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java
Date Thu, 03 Jun 2010 15:51:17 GMT
Author: norman
Date: Thu Jun  3 15:51:17 2010
New Revision: 951041

URL: http://svn.apache.org/viewvc?rev=951041&view=rev
Log:
TLS/SSL enabled services works now

Modified:
    james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java

Modified: james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java
URL: http://svn.apache.org/viewvc/james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java?rev=951041&r1=951040&r2=951041&view=diff
==============================================================================
--- james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java
(original)
+++ james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractSSLAwareChannelPipelineFactory.java
Thu Jun  3 15:51:17 2010
@@ -19,6 +19,7 @@
 package org.apache.james.socket.netty;
 
 import javax.net.ssl.SSLContext;
+import javax.net.ssl.SSLEngine;
 
 import org.jboss.netty.channel.ChannelPipeline;
 import org.jboss.netty.handler.ssl.SslHandler;
@@ -37,7 +38,9 @@ public abstract class AbstractSSLAwareCh
         ChannelPipeline pipeline =  super.getPipeline();
 
         if (isSSLSocket()) {
-            pipeline.addFirst("sslHandler", new SslHandler(getSSLContext().createSSLEngine()));
+            SSLEngine engine = getSSLContext().createSSLEngine();
+            engine.setUseClientMode(false);
+            pipeline.addFirst("sslHandler", new SslHandler(engine));
         }
         return pipeline;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message