Enable SSH remotes in native frontends (#117)

This commit is contained in:
hugo committed 2026-08-25 21:39:35 +02:00
1 parent 76e707f645
commit a737e74aae
22 files changed
+1214 -140

No files matched your search

+16
View File
@@ -406,6 +406,22 @@ impl<B: SecretStoreBackend, C: AuthenticationClock> AuthenticationHandle<B, C> {
.store_openpgp_passphrase(&reference, value)
.map_err(Into::into)
}
/// Persist a passphrase that a completed SSH operation proved could
/// unlock and authenticate the configured private key.
pub fn persist_verified_ssh_passphrase(
&self,
fingerprint: &crate::config::SshFingerprint,
value: SecretBytes,
) -> Result<(), AuthenticationError> {
let _operation = self.shared.operation()?;
self.shared.expire_if_needed()?;
self.shared.with_active(self.generation, |_| ())?;
self.shared
.store
.persist_verified_ssh_passphrase(fingerprint, value)
.map_err(Into::into)
}
}
impl<B: SecretStoreBackend, C: AuthenticationClock> SecretProvider for AuthenticationHandle<B, C> {