Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove kSecAttrSync #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Sources/LibAuk/Storage/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class Keychain: KeychainProtocol {
kSecClass as String: kSecClassGenericPassword as String,
kSecAttrAccessGroup as String: LibAuk.shared.keyChainGroup,
kSecAttrAccount as String: buildKeyAttr(prefix: prefix, key: forKey),
kSecAttrSynchronizable as String: syncAttr,
kSecValueData as String: data,
] as [String: Any]

Expand All @@ -68,7 +67,7 @@ class Keychain: KeychainProtocol {
let context = AccessControl.shared.context
let query = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrSynchronizable as String: syncAttr!,
// kSecAttrSynchronizable as String: syncAttr!,
kSecAttrAccount as String: buildKeyAttr(prefix: prefix, key: key),
kSecReturnData as String: kCFBooleanTrue!,
kSecAttrAccessGroup as String: LibAuk.shared.keyChainGroup,
Expand All @@ -92,7 +91,7 @@ class Keychain: KeychainProtocol {
let syncAttr = isSync ? kCFBooleanTrue : kCFBooleanFalse
let query = [
kSecClass as String: kSecClassGenericPassword as String,
kSecAttrSynchronizable as String: syncAttr!,
// kSecAttrSynchronizable as String: syncAttr!,
kSecAttrAccessGroup as String: LibAuk.shared.keyChainGroup,
kSecAttrAccount as String: buildKeyAttr(prefix: prefix, key: key),
kSecAttrAccessible as String: AccessControl.shared.accessible,
Expand Down
Loading