projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(oops) Apologies all, that last header-cleanup commit was from the wrong
[openssl.git]
/
crypto
/
asn1
/
t_spki.c
diff --git
a/crypto/asn1/t_spki.c
b/crypto/asn1/t_spki.c
index 5abfbc815ea9e09a4949d0a0c6c4c7082fee7407..67b0cc9f00e56479a7605fbcaea4299d27deec0f 100644
(file)
--- a/
crypto/asn1/t_spki.c
+++ b/
crypto/asn1/t_spki.c
@@
-60,6
+60,8
@@
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/asn1.h>
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/asn1.h>
+#include <openssl/rsa.h>
+#include <openssl/dsa.h>
/* Print out an SPKI */
/* Print out an SPKI */
@@
-93,6
+95,15
@@
int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
}
else
#endif
}
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);
}
BIO_printf(out," Unknown Public Key:\n");
EVP_PKEY_free(pkey);
}