Skip to content

Commit

Permalink
compress cert: Fix debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Nov 29, 2023
1 parent da8164e commit 7541d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,11 +1414,11 @@ uint32_t ykpiv_util_slot_object(uint8_t slot) {
goto invalid_tlv;
}
compress_info = *ptr;
DBG("Found TAG_CERT_COMPRESS value 0x%02x", compress_info);
DBG("Found TAG_CERT_COMPRESS with length %zu value 0x%02x", len, compress_info);
break;
case TAG_CERT_LRC: {
// basically ignore it
DBG("Found TAG_CERT_LRC with length %zu", cert_len);
DBG("Found TAG_CERT_LRC with length %zu", len);
break;
}
default:
Expand Down Expand Up @@ -1472,7 +1472,7 @@ uint32_t ykpiv_util_slot_object(uint8_t slot) {
#else
DBG("Found compressed certificate. Decompressing certificate not supported");
*certdata_len = 0;
return YKPIV_OK;
return YKPIV_PARSE_ERROR;
#endif
} else {
if (*certdata_len < cert_len) {
Expand Down

0 comments on commit 7541d63

Please sign in to comment.