openpgp-tool: don't uppercase hex string

This commit is contained in:
Peter Marschall 2018-10-21 19:39:50 +02:00 committed by Frank Morgner
parent afda163dc6
commit 4e5805dc5d
1 changed files with 1 additions and 8 deletions

View File

@ -204,15 +204,8 @@ static char *prettify_hex(u8 *data, size_t length, char *buffer, size_t buflen)
if (data != NULL) {
int r = sc_bin_to_hex(data, length, buffer, buflen, ':');
if (r == SC_SUCCESS) {
char *ptr;
/* upper-case the hex-ified string */
for (ptr = buffer; *ptr != '\0'; ptr++)
*ptr = toupper(*ptr);
if (r == SC_SUCCESS)
return buffer;
}
}
return NULL;
}