Add support for shared libraries with OS/2.
[oweals/openssl.git] / crypto / asn1 / t_req.c
index 848c29a2dd3f22ad20d37658aca9d6906fc89366..bfa58cc967135f9c1edc766758bfdf4148d609a9 100644 (file)
@@ -134,6 +134,15 @@ int X509_REQ_print(BIO *bp, X509_REQ *x)
                }
        else
 #endif
+#ifndef OPENSSL_NO_ECDSA
+               if (pkey != NULL && pkey->type == EVP_PKEY_ECDSA)
+               {
+                       BIO_printf(bp, "%12sECDSA Public Key: \n","");
+                       ECDSA_print(bp, pkey->pkey.ecdsa, 16);
+               }
+       else
+#endif
+
                BIO_printf(bp,"%12sUnknown Public Key:\n","");
 
        if (pkey != NULL)