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

Nils Ollrogge notifications at github.com
Thu Jul 1 14:18:35 CEST 2021


@Ollrogge 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;

Sorry I don't quite understand. Are there general RIOT return codes for success and failure ? 
Maybe I am blind but I wasn't able to find anything like this.

-- 
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_r662238000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210701/7f86ef8e/attachment-0001.htm>


More information about the notifications mailing list