Cleanse memory using the new OPENSSL_cleanse() function.
[openssl.git] / crypto / asn1 / t_spki.c
index 5abfbc815ea9e09a4949d0a0c6c4c7082fee7407..499e12834a752ed9b4babb45bf248c617a857cca 100644 (file)
@@ -93,6 +93,15 @@ int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
                }
                else
 #endif
+#ifndef OPENSSL_NO_EC
+               if (pkey->type == EVP_PKEY_EC)
+               {
+                       BIO_printf(out, "  EC Public Key:\n");
+                       EC_KEY_print(out, pkey->pkey.eckey,2);
+               }
+               else
+#endif
+
                        BIO_printf(out,"  Unknown Public Key:\n");
                EVP_PKEY_free(pkey);
        }