diff options
author | Joel Challis <git@zvecr.com> | 2022-04-16 19:13:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 11:13:05 -0700 |
commit | 92a61aa0cd9a28056e6979f01a72b8742702dbfe (patch) | |
tree | a09ed136ab6355a762757cbffb5f836cb1b35b11 /quantum/quantum.c | |
parent | ae4d518352204d1d7bdf32427b569a03f35fb494 (diff) |
Implement XAP 'secure' core requirements (#16843)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index d4e91ddd37..673ea91b11 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -212,6 +212,12 @@ bool process_record_quantum(keyrecord_t *record) { // return false; // } +#if defined(SECURE_ENABLE) + if (!preprocess_secure(keycode, record)) { + return false; + } +#endif + #ifdef VELOCIKEY_ENABLE if (velocikey_enabled() && record->event.pressed) { velocikey_accelerate(); @@ -247,6 +253,9 @@ bool process_record_quantum(keyrecord_t *record) { process_record_via(keycode, record) && #endif process_record_kb(keycode, record) && +#if defined(SECURE_ENABLE) + process_secure(keycode, record) && +#endif #if defined(SEQUENCER_ENABLE) process_sequencer(keycode, record) && #endif |