X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fasn1%2Ft_spki.c;h=23ab3b94e0bb03e3d4ce1823444959e3d8fc2020;hb=53d899676411c52c2389451887d0a0b2cd452802;hp=5abfbc815ea9e09a4949d0a0c6c4c7082fee7407;hpb=cf1b7d96647d55e533f779e476e3d4371f40445a;p=oweals%2Fopenssl.git diff --git a/crypto/asn1/t_spki.c b/crypto/asn1/t_spki.c index 5abfbc815e..23ab3b94e0 100644 --- a/crypto/asn1/t_spki.c +++ b/crypto/asn1/t_spki.c @@ -60,6 +60,9 @@ #include "cryptlib.h" #include #include +#include +#include +#include /* Print out an SPKI */ @@ -93,6 +96,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.ec,2); + } + else +#endif + BIO_printf(out," Unknown Public Key:\n"); EVP_PKEY_free(pkey); }