From a944d2092bb8663be21f863bbe27fa475966c9d9 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 10 Aug 2010 15:56:10 +0200 Subject: Use bits instead of bytes for a private/public key --- src/pki/commands/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pki/commands/print.c') 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); -- cgit v1.2.3