Skip to content

Commit 86e3d14

Browse files
committed
Announce makeCredUvNotRqd if auv opt is false.
It could not match with alwaysUv if no pin is not introduced yet. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
1 parent 2c1e531 commit 86e3d14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fido/cbor_get_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ int cbor_get_info(void) {
140140
CBOR_CHECK(cbor_encode_text_stringz(&arrayEncoder, "setMinPINLength"));
141141
CBOR_CHECK(cbor_encode_boolean(&arrayEncoder, true));
142142
CBOR_CHECK(cbor_encode_text_stringz(&arrayEncoder, "makeCredUvNotRqd"));
143-
CBOR_CHECK(cbor_encode_boolean(&arrayEncoder, alwaysUv ? false : get_opts() & FIDO2_OPT_MCUV_NOTRQD));
143+
CBOR_CHECK(cbor_encode_boolean(&arrayEncoder, get_opts() & FIDO2_OPT_AUV ? false : get_opts() & FIDO2_OPT_MCUV_NOTRQD));
144144
CBOR_CHECK(cbor_encoder_close_container(&mapEncoder, &arrayEncoder));
145145

146146
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 0x05));

0 commit comments

Comments
 (0)