[riot-notifications] [RIOT-OS/RIOT] FIDO2 support in RIOT (#16489)

benpicco notifications at github.com
Mon Aug 23 23:41:30 CEST 2021


@benpicco commented on this pull request.



> +static inline bool _is_boot_locked(void)
+{
+    return _rem_pin_att_boot <= 0;
+}
+
+static int _decrement_pin_attempts(void)
+{
+    if (_state.rem_pin_att > 0) {
+        _state.rem_pin_att--;
+    }
+
+    if (_rem_pin_att_boot > 0) {
+        _rem_pin_att_boot--;
+    }
+
+    _write_state_to_flash(&_state);

This clears the entire page - is this intentional? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16489#pullrequestreview-736592326
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210823/44e7f276/attachment.htm>


More information about the notifications mailing list