mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-21 05:00:13 +08:00
Fix making new credential when up is absent.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -44,9 +44,9 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
|
||||
size_t resp_size = 0;
|
||||
CredExtensions extensions = {0};
|
||||
//options.present = true;
|
||||
options.up = ptrue;
|
||||
options.uv = pfalse;
|
||||
options.rk = pfalse;
|
||||
//options.up = ptrue;
|
||||
//options.uv = pfalse;
|
||||
//options.rk = pfalse;
|
||||
|
||||
CBOR_CHECK(cbor_parser_init(data, len, 0, &parser, &map));
|
||||
uint64_t val_c = 1;
|
||||
@@ -230,7 +230,7 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
|
||||
CBOR_ERROR(CTAP2_ERR_CREDENTIAL_EXCLUDED);
|
||||
}
|
||||
|
||||
if (options.up == ptrue) { //14.1
|
||||
if (options.up == ptrue || options.up == NULL) { //14.1
|
||||
if (pinUvAuthParam.present == true) {
|
||||
if (getUserPresentFlagValue() == false) {
|
||||
if (check_user_presence() == false)
|
||||
|
||||
Reference in New Issue
Block a user