aboutsummaryrefslogtreecommitdiffstats
path: root/src/pki
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-10 15:56:10 +0200
committerMartin Willi <martin@revosec.ch>2010-08-10 18:46:30 +0200
commita944d2092bb8663be21f863bbe27fa475966c9d9 (patch)
tree7a3d6f2c612f7e9e229c0e8be2fa21fb05d3db2e /src/pki
parent33ddaaabec136e358bf38a6aeb7855f466603007 (diff)
downloadstrongswan-a944d2092bb8663be21f863bbe27fa475966c9d9.tar.bz2
strongswan-a944d2092bb8663be21f863bbe27fa475966c9d9.tar.xz
Use bits instead of bytes for a private/public key
Diffstat (limited to 'src/pki')
-rw-r--r--src/pki/commands/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki/commands/print.c b/src/pki/commands/print.c
index 6d5462783..1f449de4e 100644
--- a/src/pki/commands/print.c
+++ b/src/pki/commands/print.c
@@ -29,7 +29,7 @@ static void print_pubkey(public_key_t *key)
chunk_t chunk;
printf("pubkey: %N %d bits\n", key_type_names, key->get_type(key),
- key->get_keysize(key) * 8);
+ key->get_keysize(key));
if (key->get_fingerprint(key, KEYID_PUBKEY_INFO_SHA1, &chunk))
{
printf("keyid: %#B\n", &chunk);