pkcs15-tool: also print the PIN reference in hex.

This eases debugging.
This commit is contained in:
Martin Paljak 2011-08-08 17:16:52 +03:00
parent 4f334b8075
commit 51804601e4
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ static void print_pin_info(const struct sc_pkcs15_object *obj)
(unsigned long)pin->attrs.pin.min_length, (unsigned long)pin->attrs.pin.max_length,
(unsigned long)pin->attrs.pin.stored_length);
printf("\tPad char : 0x%02X\n", pin->attrs.pin.pad_char);
printf("\tReference : %d\n", pin->attrs.pin.reference);
printf("\tReference : %d (0x%02X)\n", pin->attrs.pin.reference, pin->attrs.pin.reference);
if (pin->attrs.pin.type < NELEMENTS(pin_types))
printf("\tType : %s\n", pin_types[pin->attrs.pin.type]);
else