Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDennis <yowidin@gmail.com>2022-09-05 17:38:02 +0300
committerGitHub <noreply@github.com>2022-09-05 17:38:02 +0300
commitbd809ba90b25d9a0a7634353025efcd0e4c66880 (patch)
treed6923eb310c546a689e7f153debbfe93c68eb072 /cmake
parent15b9e82f93971a1cd2f63f3b21eafcf3601ec70c (diff)
TouchID support refactoring (#8311)
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/compiler-checks/macos/control_biometry_support.mm5
-rw-r--r--cmake/compiler-checks/macos/control_touch_id_support.mm5
-rw-r--r--cmake/compiler-checks/macos/control_watch_support.mm5
3 files changed, 15 insertions, 0 deletions
diff --git a/cmake/compiler-checks/macos/control_biometry_support.mm b/cmake/compiler-checks/macos/control_biometry_support.mm
new file mode 100644
index 000000000..1bfbab184
--- /dev/null
+++ b/cmake/compiler-checks/macos/control_biometry_support.mm
@@ -0,0 +1,5 @@
+#include <Security/Security.h>
+
+int main() {
+ return static_cast<int>(kSecAccessControlBiometryCurrentSet);
+} \ No newline at end of file
diff --git a/cmake/compiler-checks/macos/control_touch_id_support.mm b/cmake/compiler-checks/macos/control_touch_id_support.mm
new file mode 100644
index 000000000..e78767498
--- /dev/null
+++ b/cmake/compiler-checks/macos/control_touch_id_support.mm
@@ -0,0 +1,5 @@
+#include <Security/Security.h>
+
+int main() {
+ return static_cast<int>(kSecAccessControlTouchIDCurrentSet);
+} \ No newline at end of file
diff --git a/cmake/compiler-checks/macos/control_watch_support.mm b/cmake/compiler-checks/macos/control_watch_support.mm
new file mode 100644
index 000000000..fce69edc0
--- /dev/null
+++ b/cmake/compiler-checks/macos/control_watch_support.mm
@@ -0,0 +1,5 @@
+#include <Security/Security.h>
+
+int main() {
+ return static_cast<int>(kSecAccessControlWatch);
+} \ No newline at end of file