remove overload, caller can take care of it in 2 step process
This commit is contained in:
parent
e32402b807
commit
566b7253f5
2 changed files with 4 additions and 8 deletions
|
|
@ -30,8 +30,11 @@ func decryptPassword(
|
|||
}
|
||||
DispatchQueue.global(qos: .userInteractive).async {
|
||||
do {
|
||||
guard let passwordEntity = PasswordStore.shared.fetchPasswordEntity(with: passwordPath) else {
|
||||
throw AppError.decryption
|
||||
}
|
||||
let requestPGPKeyPassphrase = Utils.createRequestPGPKeyPassphraseHandler(controller: controller)
|
||||
let decryptedPassword = try PasswordStore.shared.decrypt(path: passwordPath, keyID: keyID, requestPGPKeyPassphrase: requestPGPKeyPassphrase)
|
||||
let decryptedPassword = try PasswordStore.shared.decrypt(passwordEntity: passwordEntity, keyID: keyID, requestPGPKeyPassphrase: requestPGPKeyPassphrase)
|
||||
|
||||
DispatchQueue.main.async {
|
||||
completion(decryptedPassword)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue