summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_spki.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/t_spki.c')
-rw-r--r--src/lib/libcrypto/asn1/t_spki.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/libcrypto/asn1/t_spki.c b/src/lib/libcrypto/asn1/t_spki.c
index 5abfbc815e..c2a5797dd8 100644
--- a/src/lib/libcrypto/asn1/t_spki.c
+++ b/src/lib/libcrypto/asn1/t_spki.c
@@ -60,6 +60,13 @@
60#include "cryptlib.h" 60#include "cryptlib.h"
61#include <openssl/x509.h> 61#include <openssl/x509.h>
62#include <openssl/asn1.h> 62#include <openssl/asn1.h>
63#ifndef OPENSSL_NO_RSA
64#include <openssl/rsa.h>
65#endif
66#ifndef OPENSSL_NO_DSA
67#include <openssl/dsa.h>
68#endif
69#include <openssl/bn.h>
63 70
64/* Print out an SPKI */ 71/* Print out an SPKI */
65 72
@@ -93,6 +100,15 @@ int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
93 } 100 }
94 else 101 else
95#endif 102#endif
103#ifndef OPENSSL_NO_EC
104 if (pkey->type == EVP_PKEY_EC)
105 {
106 BIO_printf(out, " EC Public Key:\n");
107 EC_KEY_print(out, pkey->pkey.ec,2);
108 }
109 else
110#endif
111
96 BIO_printf(out," Unknown Public Key:\n"); 112 BIO_printf(out," Unknown Public Key:\n");
97 EVP_PKEY_free(pkey); 113 EVP_PKEY_free(pkey);
98 } 114 }