Fix various build breaks
[openssl.git] / apps / ca.c
index a93c00e2dd4dbd2ee8a7e80b12f89c80172d46e8..bcb3f50d8aa150eb8388bf74d5388c56a6be4a55 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -323,7 +323,7 @@ int MAIN(int argc, char **argv)
     STACK_OF(OPENSSL_STRING) *sigopts = NULL;
 #undef BSIZE
 #define BSIZE 256
-    MS_STATIC char buf[3][BSIZE];
+    char buf[3][BSIZE];
     char *randfile = NULL;
 #ifndef OPENSSL_NO_ENGINE
     char *engine = NULL;
@@ -2171,18 +2171,6 @@ static void write_new_certificate(BIO *bp, X509 *x, int output_der,
         (void)i2d_X509_bio(bp, x);
         return;
     }
-#if 0
-    /* ??? Not needed since X509_print prints all this stuff anyway */
-    f = X509_NAME_oneline(X509_get_issuer_name(x), buf, 256);
-    BIO_printf(bp, "issuer :%s\n", f);
-
-    f = X509_NAME_oneline(X509_get_subject_name(x), buf, 256);
-    BIO_printf(bp, "subject:%s\n", f);
-
-    BIO_puts(bp, "serial :");
-    i2a_ASN1_INTEGER(bp, x->cert_info->serialNumber);
-    BIO_puts(bp, "\n\n");
-#endif
     if (!notext)
         X509_print(bp, x);
     PEM_write_bio_X509(bp, x);