Refactor PHY to support more flexible and scalable architecture.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-11-05 00:29:58 +01:00
parent e5910b1cba
commit 4ce6b2df5c
4 changed files with 22 additions and 24 deletions

View File

@@ -457,12 +457,16 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
#ifndef ENABLE_EMULATION
uint8_t *p = (uint8_t *)user.parent.name.data + 5;
if (memcmp(p, "CommissionProfile", 17) == 0) {
ret = parse_phy_data(user.id.data, user.id.len);
ret = phy_unserialize_data(user.id.data, user.id.len, &phy_data);
if (ret == CCID_OK) {
file_put_data(ef_phy, user.id.data, user.id.len);
}
}
#endif
if (ret != 0) {
CBOR_ERROR(CTAP2_ERR_PROCESSING);
}
low_flash_available();
}
}