mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
fix: remove injection redirection in SSHFacade
This commit is contained in:
@@ -8,7 +8,6 @@ import app.passwordstore.util.features.Features
|
|||||||
import app.passwordstore.util.git.operation.CredentialFinder
|
import app.passwordstore.util.git.operation.CredentialFinder
|
||||||
import app.passwordstore.util.git.sshj.SshKey
|
import app.passwordstore.util.git.sshj.SshKey
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import javax.inject.Provider
|
|
||||||
import net.schmizz.sshj.SSHClient
|
import net.schmizz.sshj.SSHClient
|
||||||
import net.schmizz.sshj.userauth.keyprovider.KeyProvider
|
import net.schmizz.sshj.userauth.keyprovider.KeyProvider
|
||||||
|
|
||||||
@@ -16,12 +15,12 @@ import net.schmizz.sshj.userauth.keyprovider.KeyProvider
|
|||||||
class SSHFacade
|
class SSHFacade
|
||||||
@Inject
|
@Inject
|
||||||
constructor(
|
constructor(
|
||||||
private val features: Provider<Features>,
|
private val features: Features,
|
||||||
private val sshKeyManager: SSHKeyManager,
|
private val sshKeyManager: SSHKeyManager,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
private val useNewSSH
|
private val useNewSSH
|
||||||
get() = features.get().isEnabled(Feature.EnableNewSSHLayer)
|
get() = features.isEnabled(Feature.EnableNewSSHLayer)
|
||||||
|
|
||||||
fun canShowPublicKey(): Boolean {
|
fun canShowPublicKey(): Boolean {
|
||||||
return if (useNewSSH) {
|
return if (useNewSSH) {
|
||||||
|
Reference in New Issue
Block a user