use a generic EC_KEY structure (EC keys are not ECDSA specific)
[openssl.git] / crypto / asn1 / t_spki.c
index 86821119d8aef99e449875ef0d67b2a4a356a0c7..499e12834a752ed9b4babb45bf248c617a857cca 100644 (file)
@@ -93,11 +93,11 @@ int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
                }
                else
 #endif
-#ifndef OPENSSL_NO_ECDSA
-               if (pkey->type == EVP_PKEY_ECDSA)
+#ifndef OPENSSL_NO_EC
+               if (pkey->type == EVP_PKEY_EC)
                {
-                       BIO_printf(out, "  ECDSA Public Key:\n");
-                       ECDSA_print(out, pkey->pkey.ecdsa,2);
+                       BIO_printf(out, "  EC Public Key:\n");
+                       EC_KEY_print(out, pkey->pkey.eckey,2);
                }
                else
 #endif