diff options
Diffstat (limited to 'scd/app-help.c')
-rw-r--r-- | scd/app-help.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scd/app-help.c b/scd/app-help.c index 45c7586f7..7b9ce992d 100644 --- a/scd/app-help.c +++ b/scd/app-help.c @@ -39,7 +39,6 @@ app_help_get_keygrip_string (ksba_cert_t cert, char *hexkeygrip) ksba_sexp_t p; size_t n; unsigned char array[20]; - int i; p = ksba_cert_get_public_key (cert); if (!p) @@ -58,8 +57,7 @@ app_help_get_keygrip_string (ksba_cert_t cert, char *hexkeygrip) } gcry_sexp_release (s_pkey); - for (i=0; i < 20; i++) - sprintf (hexkeygrip+i*2, "%02X", array[i]); + bin2hex (array, 20, hexkeygrip); return 0; } |