forked from mirrors/linphone-iphone
Create VFS key in keychain with device locked accessibility
This commit is contained in:
parent
c0292d9123
commit
1390768f53
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ import os
|
|||
[.privateKeyUsage, .touchIDCurrentSet] : .privateKeyUsage
|
||||
}
|
||||
let access =
|
||||
SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleWhenUnlockedThisDeviceOnly,flags,nil)!
|
||||
SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleAlwaysThisDeviceOnly,flags,nil)!
|
||||
let tag = keyName.data(using: .utf8)!
|
||||
let attributes: [String: Any] = [
|
||||
kSecAttrKeyType as String : kSecAttrKeyTypeECSECPrimeRandom,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue