dont add uv option...

This commit is contained in:
Conor Patrick 2018-11-08 02:01:41 -05:00 committed by Emanuele Cesena
parent 984b30234a
commit 43b5201a1e
2 changed files with 12 additions and 8 deletions

View File

@ -165,16 +165,19 @@ uint8_t ctap_get_info(CborEncoder * encoder)
check_ret(ret); check_ret(ret);
} }
ret = cbor_encode_text_string(&options, "uv", 2); // NOT [yet] capable of verifying user
check_ret(ret); // Do not add option if UV isn't supported.
{ //
ret = cbor_encode_boolean(&options, 0); // NOT [yet] capable of verifying user // ret = cbor_encode_text_string(&options, "uv", 2);
check_ret(ret); // check_ret(ret);
} // {
// ret = cbor_encode_boolean(&options, 0);
// check_ret(ret);
// }
ret = cbor_encode_text_string(&options, "clientPin", 9); ret = cbor_encode_text_string(&options, "clientPin", 9);
check_ret(ret); check_ret(ret);
{ {
ret = cbor_encode_boolean(&options, ctap_is_pin_set()); // NOT [yet] capable of verifying user ret = cbor_encode_boolean(&options, ctap_is_pin_set());
check_ret(ret); check_ret(ret);
} }

View File

@ -678,12 +678,13 @@ uint8_t ctap_parse_make_credential(CTAP_makeCredential * MC, CborEncoder * encod
if (CTAP1_ERR_INVALID_LENGTH != ret) // damn microsoft if (CTAP1_ERR_INVALID_LENGTH != ret) // damn microsoft
{ {
check_retr(ret); check_retr(ret);
MC->pinAuthPresent = 1;
} }
else else
{ {
ret = 0; ret = 0;
} }
MC->pinAuthPresent = 1;
break; break;
case MC_pinProtocol: case MC_pinProtocol:
printf1(TAG_MC,"CTAP_pinProtocol\n"); printf1(TAG_MC,"CTAP_pinProtocol\n");