opensc-explorer: use util_hex_dump() in do_info()
Use standard function util_hex_dump() in do_info() instead of enumerating lists of bytes ourselves. Signed-off-by: Peter Marschall <peter@adpm.de>
This commit is contained in:
parent
12fce0f329
commit
c03eedde54
|
@ -677,14 +677,12 @@ static int do_info(int argc, char **argv)
|
||||||
|
|
||||||
if (file->prop_attr_len) {
|
if (file->prop_attr_len) {
|
||||||
printf("%-25s", "Proprietary attributes:");
|
printf("%-25s", "Proprietary attributes:");
|
||||||
for (i = 0; i < file->prop_attr_len; i++)
|
util_hex_dump(stdout, file->prop_attr, file->prop_attr_len, " ");
|
||||||
printf("%02X ", file->prop_attr[i]);
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
if (file->sec_attr_len) {
|
if (file->sec_attr_len) {
|
||||||
printf("%-25s", "Security attributes:");
|
printf("%-25s", "Security attributes:");
|
||||||
for (i = 0; i < file->sec_attr_len; i++)
|
util_hex_dump(stdout, file->sec_attr, file->sec_attr_len, " ");
|
||||||
printf("%02X ", file->sec_attr[i]);
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
Loading…
Reference in New Issue