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

Add support for new-style SecAccessControlCreateFlags constants #173

Merged
merged 1 commit into from
May 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SecureEnclaveAccessControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ public enum SecureEnclaveAccessControl: Int, CustomStringConvertible, Equatable
return .userPresence
case .biometricAny:
if #available(macOS 10.12.1, *) {
return .touchIDAny
return .init(rawValue: 2) // .biometryAny with Xcode 9 compatibility.
} else {
ErrorHandler.assertionFailure(".biometricAny requires macOS 10.12.1.")
return .userPresence
}
case .biometricCurrentSet:
if #available(macOS 10.12.1, *) {
return .touchIDCurrentSet
return .init(rawValue: 8) // .biometryCurrentSet with Xcode 9 compatibility.
} else {
ErrorHandler.assertionFailure(".biometricCurrentSet requires macOS 10.12.1.")
return .userPresence
Expand Down