(oops) Apologies all, that last header-cleanup commit was from the wrong
[openssl.git] / crypto / asn1 / t_spki.c
index 86821119d8aef99e449875ef0d67b2a4a356a0c7..67b0cc9f00e56479a7605fbcaea4299d27deec0f 100644 (file)
@@ -60,6 +60,8 @@
 #include "cryptlib.h"
 #include <openssl/x509.h>
 #include <openssl/asn1.h>
+#include <openssl/rsa.h>
+#include <openssl/dsa.h>
 
 /* Print out an SPKI */
 
@@ -93,11 +95,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