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 2018/06/07 13:32:56 UTC
mina git commit: Removed the useless SSL SECURED and UNECURED messages
Repository: mina
Updated Branches:
refs/heads/2.1.0 478e0adf8 -> f89bc368b
Removed the useless SSL SECURED and UNECURED messages
Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/f89bc368
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/f89bc368
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/f89bc368
Branch: refs/heads/2.1.0
Commit: f89bc368b92ae56951ab62e411e30864cad5b53f
Parents: 478e0ad
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Thu Jun 7 15:32:50 2018 +0200
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Thu Jun 7 15:32:50 2018 +0200
----------------------------------------------------------------------
.../org/apache/mina/filter/ssl/SslFilter.java | 18 ------------------
.../org/apache/mina/filter/ssl/SslHandler.java | 4 ----
2 files changed, 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mina/blob/f89bc368/mina-core/src/main/java/org/apache/mina/filter/ssl/SslFilter.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslFilter.java b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslFilter.java
index 7c62252..73c1337 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslFilter.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslFilter.java
@@ -133,20 +133,6 @@ public class SslFilter extends IoFilterAdapter {
*/
public static final AttributeKey PEER_ADDRESS = new AttributeKey(SslFilter.class, "peerAddress");
- /**
- * A special message object which is emitted with a {@link IoHandler#messageReceived(IoSession, Object)}
- * event when the session is secured and its {@link #USE_NOTIFICATION}
- * attribute is set.
- */
- public static final SslFilterMessage SESSION_SECURED = new SslFilterMessage("SESSION_SECURED");
-
- /**
- * A special message object which is emitted with a {@link IoHandler#messageReceived(IoSession, Object)}
- * event when the session is not secure anymore and its {@link #USE_NOTIFICATION}
- * attribute is set.
- */
- public static final SslFilterMessage SESSION_UNSECURED = new SslFilterMessage("SESSION_UNSECURED");
-
/** An attribute containing the next filter */
private static final AttributeKey NEXT_FILTER = new AttributeKey(SslFilter.class, "nextFilter");
@@ -788,10 +774,6 @@ public class SslFilter extends IoFilterAdapter {
}
}
- if (session.containsAttribute(USE_NOTIFICATION)) {
- sslHandler.scheduleMessageReceived(nextFilter, SESSION_UNSECURED);
- }
-
// Inform that the session is not any more secured
session.getFilterChain().fireEvent(SslEvent.UNSECURED);
} catch (SSLException se) {
http://git-wip-us.apache.org/repos/asf/mina/blob/f89bc368/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
index 0cef504..4bde867 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
@@ -540,10 +540,6 @@ class SslHandler {
if (firstSSLNegociation) {
firstSSLNegociation = false;
- if (session.containsAttribute(SslFilter.USE_NOTIFICATION)) {
- scheduleMessageReceived(nextFilter, SslFilter.SESSION_SECURED);
- }
-
nextFilter.event(session, SslEvent.SECURED);
}