Skip to content

Commit 804ee68

Browse files
committed
Remove non-standard MAKE CREDENTIAL step.
It may collide with other userName and the purpose is achieved cleaner via Rescue interface. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
1 parent fe49149 commit 804ee68

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/fido/cbor_make_credential.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -613,24 +613,6 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
613613
CBOR_ERROR(CTAP2_ERR_PROCESSING);
614614
}
615615

616-
if (user.id.len > 0 && user.parent.name.len > 0 && user.displayName.len > 0) {
617-
if (memcmp(user.parent.name.data, "+pico", 5) == 0) {
618-
options.rk = pfalse;
619-
#ifndef ENABLE_EMULATION
620-
uint8_t *p = (uint8_t *)user.parent.name.data + 5;
621-
if (memcmp(p, "CommissionProfile", 17) == 0) {
622-
ret = phy_unserialize_data(user.id.data, (uint16_t)user.id.len, &phy_data);
623-
if (ret == PICOKEY_OK) {
624-
ret = phy_save();
625-
}
626-
}
627-
#endif
628-
if (ret != PICOKEY_OK) {
629-
CBOR_ERROR(CTAP2_ERR_PROCESSING);
630-
}
631-
}
632-
}
633-
634616
uint8_t largeBlobKey[32] = {0};
635617
if (extensions.largeBlobKey == ptrue && options.rk == ptrue) {
636618
ret = credential_derive_large_blob_key(cred_id, cred_id_len, largeBlobKey);

0 commit comments

Comments
 (0)