Skip to content

Commit

Permalink
Merge pull request #173 from LinusU/avoid-deprecation
Browse files Browse the repository at this point in the history
Add support for new-style SecAccessControlCreateFlags constants
  • Loading branch information
dfed committed May 30, 2019
2 parents 79ac00e + 11fcaa6 commit b5501be
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b5501be

Please sign in to comment.