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

Nils Ollrogge notifications at github.com
Mon Aug 16 09:40:35 CEST 2021


@Ollrogge commented on this pull request.



> +    return ((pkt->init.cmd & CTAP_HID_INIT_PACKET) == CTAP_HID_INIT_PACKET);
+}
+
+static void _clear_ctap_buffer(void)
+{
+    memset(&_state, 0, sizeof(_state));
+}
+
+bool fido2_ctap_transport_hid_should_cancel(void)
+{
+    return _state.should_cancel;
+}
+
+static inline uint32_t _get_new_cid(void)
+{
+    return _cid++;

I don't really know actually. Just seemed cleaner to me but looking at it again I think the function is unnecessary.

-- 
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#discussion_r689304969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210816/3af95cfc/attachment.htm>


More information about the notifications mailing list