From 47c9af012768925f823e93edbd21ac8b4e19b39b Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sat, 29 Jun 2019 10:31:30 +0200 Subject: [PATCH] Fix wrong Keychain key string This caused the private PGP key passphrase to remain unchanged although the key itself was removed. --- passKit/Models/PasswordStore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passKit/Models/PasswordStore.swift b/passKit/Models/PasswordStore.swift index b51b77b..e2c0836 100644 --- a/passKit/Models/PasswordStore.swift +++ b/passKit/Models/PasswordStore.swift @@ -848,7 +848,7 @@ public class PasswordStore { SharedDefaults.remove(.pgpKeySource) SharedDefaults.remove(.pgpPrivateKeyURL) SharedDefaults.remove(.pgpPublicKeyURL) - AppKeychain.removeContent(for: ".pgpKeyPassphrase") + AppKeychain.removeContent(for: "pgpKeyPassphrase") AppKeychain.removeContent(for: PGPKeyType.PUBLIC.rawValue) AppKeychain.removeContent(for: PGPKeyType.PRIVATE.rawValue) publicKey = nil