- switch (EVP_PKEY_base_id(pkey)) {
- case EVP_PKEY_RSA:
- ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "RSA key size", EVP_PKEY_bits(pkey));
- break;
- case EVP_PKEY_DSA:
- ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "DSA key size", EVP_PKEY_bits(pkey));
- break;
- default:
- ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "non-RSA/DSA key size", EVP_PKEY_bits(pkey));
- break;
- }
- if (ret <= 0) {
+ switch (EVP_PKEY_base_id(pkey))
+ {
+ case EVP_PKEY_RSA:
+ ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "RSA key size", EVP_PKEY_bits(pkey));
+ break;
+ case EVP_PKEY_DSA:
+ ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "DSA key size", EVP_PKEY_bits(pkey));
+ break;
+ case EVP_PKEY_EC:
+ ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "EC key size", EVP_PKEY_bits(pkey));
+ break;
+ default:
+ ret = BIO_printf(bio, "\n%-" BC "s: %d bits", "non-RSA/DSA/EC key size",
+ EVP_PKEY_bits(pkey));
+ break;
+ }
+ if (ret <= 0)
+ {