]> source.dussan.org Git - gitblit.git/commitdiff
Update dependency MINA SSHD to version 1.7.0 1427/head
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Sat, 8 Oct 2022 20:22:54 +0000 (22:22 +0200)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Sun, 9 Oct 2022 12:35:10 +0000 (14:35 +0200)
.classpath
build.moxie
gitblit.iml
src/main/java/com/gitblit/transport/ssh/SshDaemon.java
src/test/java/com/gitblit/tests/SshUnitTest.java

index e1929122a4fe5f98a88b6d02663be50004a92ce3..7c32205b7824c208331b9f9e61f3d4b86c12a528 100644 (file)
@@ -55,7 +55,7 @@
        <classpathentry kind="lib" path="ext/bcmail-jdk15on-1.57.jar" sourcepath="ext/src/bcmail-jdk15on-1.57.jar" />
        <classpathentry kind="lib" path="ext/bcpkix-jdk15on-1.57.jar" sourcepath="ext/src/bcpkix-jdk15on-1.57.jar" />
        <classpathentry kind="lib" path="ext/eddsa-0.2.0.jar" sourcepath="ext/src/eddsa-0.2.0.jar" />
-       <classpathentry kind="lib" path="ext/sshd-core-1.6.0.jar" sourcepath="ext/src/sshd-core-1.6.0.jar" />
+       <classpathentry kind="lib" path="ext/sshd-core-1.7.0.jar" sourcepath="ext/src/sshd-core-1.7.0.jar" />
        <classpathentry kind="lib" path="ext/mina-core-2.0.21.jar" sourcepath="ext/src/mina-core-2.0.21.jar" />
        <classpathentry kind="lib" path="ext/rome-0.9.jar" sourcepath="ext/src/rome-0.9.jar" />
        <classpathentry kind="lib" path="ext/jdom-1.0.jar" sourcepath="ext/src/jdom-1.0.jar" />
index 8857dca8fc2e0b0c3d48b81477f36665e30ee507..026ab5bbf6e197ee65647e805cd4cbbd9fdd95a3 100644 (file)
@@ -114,7 +114,7 @@ properties: {
   bouncycastle.version : 1.57
   selenium.version : 2.28.0
   wikitext.version : 1.4
-  sshd.version: 1.6.0
+  sshd.version: 1.7.0
   mina.version: 2.0.21
   guice.version : 4.0
   # Gitblit maintains a fork of guice-servlet
index 5d54b4317a4514b771a4db006bd97fe70325389a..694cd94f64e0a4447ae61c6fc13ba16439ec2785 100644 (file)
       </library>
     </orderEntry>
     <orderEntry type="module-library">
-      <library name="sshd-core-1.6.0.jar">
+      <library name="sshd-core-1.7.0.jar">
         <CLASSES>
-          <root url="jar://$MODULE_DIR$/ext/sshd-core-1.6.0.jar!/" />
+          <root url="jar://$MODULE_DIR$/ext/sshd-core-1.7.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES>
-          <root url="jar://$MODULE_DIR$/ext/src/sshd-core-1.6.0.jar!/" />
+          <root url="jar://$MODULE_DIR$/ext/src/sshd-core-1.7.0.jar!/" />
         </SOURCES>
       </library>
     </orderEntry>
index 405c794e1acb03c67442a1ef95c70f518a3053ca..8bb880b0313040d9b4cf58201728057f2b120e81 100644 (file)
@@ -95,11 +95,14 @@ public class SshDaemon {
 
                // Ensure that Bouncy Castle is our JCE provider
                SecurityUtils.registerSecurityProvider(new BouncyCastleSecurityProviderRegistrar());
-               // Add support for ED25519_SHA512
-               SecurityUtils.registerSecurityProvider(new EdDSASecurityProviderRegistrar());
                if (SecurityUtils.isBouncyCastleRegistered()) {
                        log.info("BouncyCastle is registered as a JCE provider");
                }
+               // Add support for ED25519_SHA512
+               SecurityUtils.registerSecurityProvider(new EdDSASecurityProviderRegistrar());
+               if (SecurityUtils.isProviderRegistered("EdDSA")) {
+                       log.info("EdDSA is registered as a JCE provider");
+               }
 
                // Generate host RSA and DSA keypairs and create the host keypair provider
                File rsaKeyStore = new File(gitblit.getBaseFolder(), "ssh-rsa-hostkey.pem");
@@ -164,7 +167,7 @@ public class SshDaemon {
 
                sshd.setSessionFactory(new SshServerSessionFactory(sshd));
                sshd.setFileSystemFactory(new DisabledFilesystemFactory());
-               sshd.setTcpipForwardingFilter(new NonForwardingFilter());
+               sshd.setForwardingFilter(new NonForwardingFilter());
                sshd.setCommandFactory(new SshCommandFactory(gitblit, workQueue));
                sshd.setShellFactory(new WelcomeShell(gitblit));
 
index 2f65fe99ae4aa738d9ae2ee0cb1b14e76336cc59..acb0269c25f84f8eb3550dd369a50b5a244c7ad5 100644 (file)
@@ -36,7 +36,7 @@ import org.apache.sshd.client.future.AuthFuture;
 import org.apache.sshd.client.keyverifier.ServerKeyVerifier;
 import org.apache.sshd.client.session.ClientSession;
 import org.apache.sshd.common.config.keys.FilePasswordProvider;
-import org.apache.sshd.common.util.SecurityUtils;
+import org.apache.sshd.common.util.security.SecurityUtils;
 import org.eclipse.jgit.lib.Config;
 import org.eclipse.jgit.storage.file.FileBasedConfig;
 import org.eclipse.jgit.util.FS;