Bump Mina core to 2.0.16 and sshd to 1.4
This release moves to Java 8 and fixes various bugs. See the sshd-core release notes [1] and mina-project page [2] for details. [1] https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310849&version=12338322 [2] https://mina.apache.org/mina-project/ Change-Id: I5df8540fa96f91126ccd45446a070f2000436b15
This commit is contained in:

committed by
David Pursehouse

parent
11badbbcc1
commit
12c48938cd
@@ -611,14 +611,14 @@ maven_jar(
|
||||
|
||||
maven_jar(
|
||||
name = "sshd",
|
||||
artifact = "org.apache.sshd:sshd-core:1.2.0",
|
||||
sha1 = "4bc24a8228ba83dac832680366cf219da71dae8e",
|
||||
artifact = "org.apache.sshd:sshd-core:1.4.0",
|
||||
sha1 = "c8f3d7457fc9979d1b9ec319f0229b89793c8e56",
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = "mina_core",
|
||||
artifact = "org.apache.mina:mina-core:2.0.10",
|
||||
sha1 = "a1cb1136b104219d6238de886bf5a3ea4554eb58",
|
||||
artifact = "org.apache.mina:mina-core:2.0.16",
|
||||
sha1 = "f720f17643eaa7b0fec07c1d7f6272972c02bba4",
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
|
@@ -32,7 +32,7 @@ import java.lang.ProcessBuilder.Redirect;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import org.apache.sshd.common.util.SecurityUtils;
|
||||
import org.apache.sshd.common.util.security.SecurityUtils;
|
||||
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
|
||||
|
||||
/** Initialize the {@code sshd} configuration section. */
|
||||
|
@@ -23,9 +23,9 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.apache.sshd.common.keyprovider.AbstractFileKeyPairProvider;
|
||||
import org.apache.sshd.common.keyprovider.FileKeyPairProvider;
|
||||
import org.apache.sshd.common.keyprovider.KeyPairProvider;
|
||||
import org.apache.sshd.common.util.SecurityUtils;
|
||||
import org.apache.sshd.common.util.security.SecurityUtils;
|
||||
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
|
||||
|
||||
class HostKeyProvider implements Provider<KeyPairProvider> {
|
||||
@@ -72,7 +72,7 @@ class HostKeyProvider implements Provider<KeyPairProvider> {
|
||||
+ stdKeys
|
||||
+ "");
|
||||
}
|
||||
AbstractFileKeyPairProvider kp = SecurityUtils.createFileKeyPairProvider();
|
||||
FileKeyPairProvider kp = new FileKeyPairProvider();
|
||||
kp.setFiles(stdKeys);
|
||||
return kp;
|
||||
}
|
||||
|
@@ -86,10 +86,10 @@ import org.apache.sshd.common.random.Random;
|
||||
import org.apache.sshd.common.random.SingletonRandomFactory;
|
||||
import org.apache.sshd.common.session.ConnectionService;
|
||||
import org.apache.sshd.common.session.Session;
|
||||
import org.apache.sshd.common.util.SecurityUtils;
|
||||
import org.apache.sshd.common.util.buffer.Buffer;
|
||||
import org.apache.sshd.common.util.buffer.ByteArrayBuffer;
|
||||
import org.apache.sshd.common.util.net.SshdSocketAddress;
|
||||
import org.apache.sshd.common.util.security.SecurityUtils;
|
||||
import org.apache.sshd.server.Command;
|
||||
import org.apache.sshd.server.CommandFactory;
|
||||
import org.apache.sshd.server.ServerBuilder;
|
||||
@@ -683,12 +683,12 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
||||
setTcpipForwardingFilter(
|
||||
new ForwardingFilter() {
|
||||
@Override
|
||||
public boolean canForwardAgent(Session session) {
|
||||
public boolean canForwardAgent(Session session, String requestType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canForwardX11(Session session) {
|
||||
public boolean canForwardX11(Session session, String requestType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user