From 00715f3b6e940c69b540dea29ade1a7482b5b20c Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 15 Mar 2016 12:55:25 -0700 Subject: [PATCH] Reusing provider --- src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpImpl.java b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpImpl.java index aa91adc5..33a19144 100644 --- a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpImpl.java +++ b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpImpl.java @@ -44,6 +44,7 @@ import org.apache.sshd.server.session.ServerSession; import org.apache.sshd.server.sftp.SftpSubsystem; import org.kde.kdeconnect.Device; import org.kde.kdeconnect.Helpers.RandomHelper; +import org.kde.kdeconnect.Helpers.SecurityHelpers.SslHelper; import java.io.File; import java.net.Inet4Address; @@ -108,7 +109,7 @@ class SimpleSftpServer { public final SimplePublicKeyAuthenticator keyAuth = new SimplePublicKeyAuthenticator(); static { - Security.insertProviderAt( new org.spongycastle.jce.provider.BouncyCastleProvider(), 1); + Security.insertProviderAt( SslHelper.BC, 1); SecurityUtils.setRegisterBouncyCastle(false); } private final SshServer sshd = SshServer.setUpDefaultServer();