Remove unused access control

This commit is contained in:
Max Goedjen 2021-11-07 17:30:50 -08:00
parent bb5a1a25d1
commit 9728f93930
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,6 @@ extension SecureEnclave {
public let algorithm = Algorithm.ellipticCurve
public let keySize = 256
public let publicKey: Data
internal let accessControl: SecAccessControl
}

View File

@ -190,11 +190,10 @@ extension SecureEnclave.Store {
let wrapped: [SecureEnclave.Secret] = typed.map {
let name = $0[kSecAttrLabel] as? String ?? "Unnamed"
let id = $0[kSecAttrApplicationLabel] as! Data
let accessControl = $0[kSecAttrAccessControl] as! SecAccessControl
let publicKeyRef = $0[kSecValueRef] as! SecKey
let publicKeyAttributes = SecKeyCopyAttributes(publicKeyRef) as! [CFString: Any]
let publicKey = publicKeyAttributes[kSecValueData] as! Data
return SecureEnclave.Secret(id: id, name: name, publicKey: publicKey, accessControl: accessControl)
return SecureEnclave.Secret(id: id, name: name, publicKey: publicKey)
}
secrets.append(contentsOf: wrapped)
}