mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
Remove unused access control
This commit is contained in:
parent
bb5a1a25d1
commit
9728f93930
@ -10,7 +10,6 @@ extension SecureEnclave {
|
|||||||
public let algorithm = Algorithm.ellipticCurve
|
public let algorithm = Algorithm.ellipticCurve
|
||||||
public let keySize = 256
|
public let keySize = 256
|
||||||
public let publicKey: Data
|
public let publicKey: Data
|
||||||
internal let accessControl: SecAccessControl
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,11 +190,10 @@ extension SecureEnclave.Store {
|
|||||||
let wrapped: [SecureEnclave.Secret] = typed.map {
|
let wrapped: [SecureEnclave.Secret] = typed.map {
|
||||||
let name = $0[kSecAttrLabel] as? String ?? "Unnamed"
|
let name = $0[kSecAttrLabel] as? String ?? "Unnamed"
|
||||||
let id = $0[kSecAttrApplicationLabel] as! Data
|
let id = $0[kSecAttrApplicationLabel] as! Data
|
||||||
let accessControl = $0[kSecAttrAccessControl] as! SecAccessControl
|
|
||||||
let publicKeyRef = $0[kSecValueRef] as! SecKey
|
let publicKeyRef = $0[kSecValueRef] as! SecKey
|
||||||
let publicKeyAttributes = SecKeyCopyAttributes(publicKeyRef) as! [CFString: Any]
|
let publicKeyAttributes = SecKeyCopyAttributes(publicKeyRef) as! [CFString: Any]
|
||||||
let publicKey = publicKeyAttributes[kSecValueData] as! Data
|
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)
|
secrets.append(contentsOf: wrapped)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user