From d8f76b33e9ea74eb567a115dd63559f6b27b2fce Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 25 Dec 2023 15:36:01 +0530 Subject: fix: check if passphrase is necessary before asking for it Updates #2836 --- .../src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 6 ++++++ .../src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt | 8 ++++++++ .../kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt | 6 ++++++ 3 files changed, 20 insertions(+) (limited to 'crypto') diff --git a/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt b/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt index 898cf058..20a4d1d9 100644 --- a/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt +++ b/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt @@ -41,4 +41,10 @@ public interface CryptoHandler