From 2697d67c6b0eac8bfb4a459ba1036cd872ac53c2 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 27 Apr 2020 20:45:25 +0200 Subject: [PATCH] Upgrade mina-sshd to 2.4.0 https://github.com/apache/mina-sshd/blob/master/docs/changes/2.4.0.md Change-Id: I26a5cdc8eb699c16c86352156b55ffa331762c5e Signed-off-by: Robert Varga --- .../org/opendaylight/netconf/ssh/RemoteNetconfCommand.java | 6 +++--- netconf/shaded-sshd-jar/pom.xml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java index ed557f0b62..d9ef852404 100644 --- a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java +++ b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java @@ -21,7 +21,6 @@ import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.SocketAddress; import org.opendaylight.netconf.api.messages.NetconfHelloMessageAdditionalHeader; -import org.opendaylight.netconf.shaded.sshd.common.NamedFactory; import org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream; import org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream; import org.opendaylight.netconf.shaded.sshd.server.Environment; @@ -30,6 +29,7 @@ import org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession; import org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommand; import org.opendaylight.netconf.shaded.sshd.server.command.Command; import org.opendaylight.netconf.shaded.sshd.server.session.ServerSession; +import org.opendaylight.netconf.shaded.sshd.server.subsystem.SubsystemFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -163,7 +163,7 @@ public class RemoteNetconfCommand implements AsyncCommand { return netconfHelloMessageAdditionalHeader.getAddress(); } - public static class NetconfCommandFactory implements NamedFactory { + public static class NetconfCommandFactory implements SubsystemFactory { public static final String NETCONF = "netconf"; @@ -182,7 +182,7 @@ public class RemoteNetconfCommand implements AsyncCommand { } @Override - public RemoteNetconfCommand create() { + public Command createSubsystem(final ChannelSession channel) { return new RemoteNetconfCommand(clientBootstrap, localAddress); } } diff --git a/netconf/shaded-sshd-jar/pom.xml b/netconf/shaded-sshd-jar/pom.xml index e8d1fda428..53a6a88141 100644 --- a/netconf/shaded-sshd-jar/pom.xml +++ b/netconf/shaded-sshd-jar/pom.xml @@ -32,10 +32,12 @@ org.apache.sshd sshd-osgi + 2.4.0 org.apache.sshd sshd-netty + 2.4.0 net.i2p.crypto -- 2.36.6