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

Leandro Lanzieri notifications at github.com
Thu Jul 1 14:36:28 CEST 2021

@leandrolanzieri commented on this pull request.

> +static ctap_get_assertion_state_t g_assert_state;
+static uint8_t g_pin_token[CTAP_PIN_TOKEN_SIZE];
+/* remaining PIN attempts until authenticator is boot locked */
+static int g_rem_pin_att_boot = CTAP_PIN_MAX_ATTS_BOOT;
+int fido2_ctap_init(void)
+    int ret;
+    load_state(&g_state);
+    ret = fido2_ctap_crypto_init();
+    if (ret != CTAP2_OK) {
+        DEBUG("fido2_ctap: initialization failed \n");
+        return -1;

I think @PeterKietzmann  means to define an enum with return codes. I'd find it better if you could use https://man7.org/linux/man-pages/man3/errno.3.html instead.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210701/bdb66dbe/attachment.htm>

More information about the notifications mailing list