Skip to content

Commit

Permalink
change parsing TAG_CM to TAG_PARSE
Browse files Browse the repository at this point in the history
  • Loading branch information
conorpp committed Mar 27, 2020
1 parent 04cffb6 commit 8aa1f4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fido2/ctap_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ uint8_t ctap_parse_cred_mgmt(CTAP_credMgmt * CM, uint8_t * request, int length)
ret = cbor_value_get_map_length(&it, &map_length);
check_ret(ret);

printf1(TAG_CM, "CM map has %d elements\n", map_length);
printf1(TAG_PARSE, "CM map has %d elements\n", map_length);

for (i = 0; i < map_length; i++)
{
Expand All @@ -1122,7 +1122,7 @@ uint8_t ctap_parse_cred_mgmt(CTAP_credMgmt * CM, uint8_t * request, int length)
switch(key)
{
case CM_cmd:
printf1(TAG_CM, "CM_cmd\n");
printf1(TAG_PARSE, "CM_cmd\n");
if (cbor_value_get_type(&map) == CborIntegerType)
{
ret = cbor_value_get_int_checked(&map, &CM->cmd);
Expand All @@ -1135,12 +1135,12 @@ uint8_t ctap_parse_cred_mgmt(CTAP_credMgmt * CM, uint8_t * request, int length)
}
break;
case CM_subCommandParams:
printf1(TAG_CM, "CM_subCommandParams\n");
printf1(TAG_PARSE, "CM_subCommandParams\n");
ret = parse_cred_mgmt_subcommandparams(&map, CM);
check_ret(ret);
break;
case CM_pinProtocol:
printf1(TAG_CM, "CM_pinProtocol\n");
printf1(TAG_PARSE, "CM_pinProtocol\n");
if (cbor_value_get_type(&map) == CborIntegerType)
{
ret = cbor_value_get_int_checked(&map, &CM->pinProtocol);
Expand All @@ -1152,7 +1152,7 @@ uint8_t ctap_parse_cred_mgmt(CTAP_credMgmt * CM, uint8_t * request, int length)
}
break;
case CM_pinAuth:
printf1(TAG_CM, "CM_pinAuth\n");
printf1(TAG_PARSE, "CM_pinAuth\n");
ret = parse_fixed_byte_string(&map, CM->pinAuth, 16);
check_retr(ret);
CM->pinAuthPresent = 1;
Expand Down

0 comments on commit 8aa1f4a

Please sign in to comment.