Fix making new credential when up is absent.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-27 22:10:11 +02:00
parent ad07052e6a
commit 1835afe54a

View File

@@ -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)