u2f register

This commit is contained in:
merlokk 2019-01-26 21:34:53 +02:00
parent 6ca9f1946b
commit e235402fb8
2 changed files with 7 additions and 2 deletions

View File

@ -38,7 +38,7 @@
//#define ENABLE_U2F_EXTENSIONS //#define ENABLE_U2F_EXTENSIONS
// #define ENABLE_U2F #define ENABLE_U2F
#define DISABLE_CTAPHID_PING #define DISABLE_CTAPHID_PING
#define DISABLE_CTAPHID_WINK #define DISABLE_CTAPHID_WINK

View File

@ -326,8 +326,13 @@ void nfc_process_iblock(uint8_t * buf, int len)
case APDU_FIDO_U2F_REGISTER: case APDU_FIDO_U2F_REGISTER:
printf1(TAG_NFC, "U2F Register command.\r\n"); printf1(TAG_NFC, "U2F Register command.\r\n");
ctap_response_init(&ctap_resp);
u2f_request(apdu, &ctap_resp);
status = ctap_resp.data[0];
printf1(TAG_NFC, "U2F resp: %d len: %d\r\n", status, ctap_resp.length);
nfc_write_response(buf[0], SW_COND_USE_NOT_SATISFIED); // nfc_write_response(buf[0], SW_COND_USE_NOT_SATISFIED);
nfc_write_response_chaining(buf[0], ctap_resp.data, ctap_resp.length);
break; break;
case APDU_FIDO_U2F_AUTHENTICATE: case APDU_FIDO_U2F_AUTHENTICATE: