If user has introduced PIN, it is verified.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-20 11:50:45 +02:00
parent f439b85de7
commit 8feac76a73
2 changed files with 3 additions and 0 deletions

View File

@@ -313,6 +313,8 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
}
uint8_t flags = FIDO2_AUT_FLAG_UP | FIDO2_AUT_FLAG_AT;
if (getUserVerifiedFlagValue())
flags |= FIDO2_AUT_FLAG_UV;
size_t ext_len = 0;
uint8_t ext [512];
if (hmac_secret != NULL || credProtect != 0) {

View File

@@ -62,6 +62,7 @@ extern CTAPHID_FRAME *ctap_req, *ctap_resp;
#define FIDO2_PERMISSION_ACFG 0x20
#define MAX_PIN_RETRIES 3
extern bool getUserVerifiedFlagValue();
typedef struct known_app {
const uint8_t *rp_id_hash;