From d6fdd3580f1cf994ddc2129eecaae98e392c8ecb Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 10 Apr 2023 22:59:54 +0530 Subject: fix: remove injection redirection in SSHFacade --- app/src/main/java/app/passwordstore/util/ssh/SSHFacade.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/app/passwordstore/util/ssh/SSHFacade.kt b/app/src/main/java/app/passwordstore/util/ssh/SSHFacade.kt index a28f18a5..956e2a71 100644 --- a/app/src/main/java/app/passwordstore/util/ssh/SSHFacade.kt +++ b/app/src/main/java/app/passwordstore/util/ssh/SSHFacade.kt @@ -8,7 +8,6 @@ import app.passwordstore.util.features.Features import app.passwordstore.util.git.operation.CredentialFinder import app.passwordstore.util.git.sshj.SshKey import javax.inject.Inject -import javax.inject.Provider import net.schmizz.sshj.SSHClient import net.schmizz.sshj.userauth.keyprovider.KeyProvider @@ -16,12 +15,12 @@ import net.schmizz.sshj.userauth.keyprovider.KeyProvider class SSHFacade @Inject constructor( - private val features: Provider, + private val features: Features, private val sshKeyManager: SSHKeyManager, ) { private val useNewSSH - get() = features.get().isEnabled(Feature.EnableNewSSHLayer) + get() = features.isEnabled(Feature.EnableNewSSHLayer) fun canShowPublicKey(): Boolean { return if (useNewSSH) { -- cgit v1.2.3