More prompts.

This commit is contained in:
Max Goedjen 2020-09-23 21:37:18 -07:00
parent 0e45884f0f
commit 40a7ed5729
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ extension SecureEnclave {
public func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> Data {
let context = LAContext()
context.localizedReason = "sign a request from \(provenance.origin) using secret \"\(secret.name)\""
context.localizedReason = "sign a request from \"\(provenance.origin.name)\" using secret \"\(secret.name)\""
context.localizedCancelTitle = "Deny"
let attributes = [
kSecClass: kSecClassKey,

View File

@ -47,7 +47,7 @@ extension SmartCard {
public func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> Data {
guard let tokenID = tokenID else { fatalError() }
let context = LAContext()
context.localizedReason = "sign a request from \(provenance.origin.name) using secret \"\(secret.name)\""
context.localizedReason = "sign a request from \"\(provenance.origin.name)\" using secret \"\(secret.name)\""
context.localizedCancelTitle = "Deny"
let attributes = [
kSecClass: kSecClassKey,