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;
|
size_t resp_size = 0;
|
||||||
CredExtensions extensions = {0};
|
CredExtensions extensions = {0};
|
||||||
//options.present = true;
|
//options.present = true;
|
||||||
options.up = ptrue;
|
//options.up = ptrue;
|
||||||
options.uv = pfalse;
|
//options.uv = pfalse;
|
||||||
options.rk = pfalse;
|
//options.rk = pfalse;
|
||||||
|
|
||||||
CBOR_CHECK(cbor_parser_init(data, len, 0, &parser, &map));
|
CBOR_CHECK(cbor_parser_init(data, len, 0, &parser, &map));
|
||||||
uint64_t val_c = 1;
|
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);
|
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 (pinUvAuthParam.present == true) {
|
||||||
if (getUserPresentFlagValue() == false) {
|
if (getUserPresentFlagValue() == false) {
|
||||||
if (check_user_presence() == false)
|
if (check_user_presence() == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user