mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fido2/ctap: uncrustify files
This commit is contained in:
parent
37c35112e2
commit
aa22771bd9
@ -406,7 +406,8 @@ size_t fido2_ctap_reset(ctap_resp_t *resp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint32_t get_id(void) {
|
||||
static uint32_t get_id(void)
|
||||
{
|
||||
return _state.id_cnt++;
|
||||
}
|
||||
|
||||
@ -1400,6 +1401,7 @@ static int _find_matching_rks(ctap_resident_key_t *rks, size_t rks_len,
|
||||
|
||||
ctap_resident_key_t rk = { 0 };
|
||||
uint32_t addr = 0x0;
|
||||
|
||||
while (fido2_ctap_mem_read_rk_from_flash(&rk, rp_id_hash, &addr) == CTAP2_OK) {
|
||||
if (allow_list_len == 0) {
|
||||
memcpy(&rks[index], &rk, sizeof(rk));
|
||||
|
@ -216,6 +216,7 @@ int fido2_ctap_mem_read_rk_from_flash(ctap_resident_key_t *key, uint8_t *rp_id_h
|
||||
{
|
||||
uint16_t end;
|
||||
uint16_t amt_stored = fido2_ctap_get_state()->rk_amount_stored;
|
||||
|
||||
if (*addr == 0x0) {
|
||||
end = amt_stored;
|
||||
*addr = (uint32_t)flashpage_addr(_flash_start() + CTAP_FLASH_RK_OFF);
|
||||
|
@ -155,7 +155,8 @@ int fido2_ctap_mem_write_state_to_flash(ctap_state_t *state);
|
||||
*
|
||||
* @return @ref ctap_status_codes_t
|
||||
*/
|
||||
int fido2_ctap_mem_read_rk_from_flash(ctap_resident_key_t *key, uint8_t *rp_id_hash, uint32_t *addr);
|
||||
int fido2_ctap_mem_read_rk_from_flash(ctap_resident_key_t *key, uint8_t *rp_id_hash,
|
||||
uint32_t *addr);
|
||||
|
||||
/**
|
||||
* @brief Write resident credential to flash
|
||||
|
Loading…
Reference in New Issue
Block a user