diff options
author | Werner Koch <[email protected]> | 2008-11-03 10:54:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2008-11-03 10:54:18 +0000 |
commit | 338ddd0bb63efac5466939f06a4772c55a6b14aa (patch) | |
tree | 91e5452da6a7c8e2936ce0b261cd42bd3705da38 /scd/app-help.c | |
parent | Check that the socket is well and served by us. (diff) | |
download | gnupg-338ddd0bb63efac5466939f06a4772c55a6b14aa.tar.gz gnupg-338ddd0bb63efac5466939f06a4772c55a6b14aa.zip |
Use bin2hex if possible.
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; } |