If user has introduced PIN, it is verified.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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;
|
uint8_t flags = FIDO2_AUT_FLAG_UP | FIDO2_AUT_FLAG_AT;
|
||||||
|
if (getUserVerifiedFlagValue())
|
||||||
|
flags |= FIDO2_AUT_FLAG_UV;
|
||||||
size_t ext_len = 0;
|
size_t ext_len = 0;
|
||||||
uint8_t ext [512];
|
uint8_t ext [512];
|
||||||
if (hmac_secret != NULL || credProtect != 0) {
|
if (hmac_secret != NULL || credProtect != 0) {
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ extern CTAPHID_FRAME *ctap_req, *ctap_resp;
|
|||||||
#define FIDO2_PERMISSION_ACFG 0x20
|
#define FIDO2_PERMISSION_ACFG 0x20
|
||||||
|
|
||||||
#define MAX_PIN_RETRIES 3
|
#define MAX_PIN_RETRIES 3
|
||||||
|
extern bool getUserVerifiedFlagValue();
|
||||||
|
|
||||||
typedef struct known_app {
|
typedef struct known_app {
|
||||||
const uint8_t *rp_id_hash;
|
const uint8_t *rp_id_hash;
|
||||||
|
|||||||
Reference in New Issue
Block a user