Send auxiliary messages to bio_err.
authorDaniel <daniel@openssl.org>
Sun, 6 Feb 2022 14:01:14 +0000 (15:01 +0100)
committerPauli <pauli@openssl.org>
Tue, 8 Feb 2022 23:37:19 +0000 (10:37 +1100)
Fixes openssl#17613.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17650)

apps/x509.c

index 29dc74ca9e9648c5fcdb7496c2a53330ae96b4cc..f62f809a9c03598204fd7fba78d736acbcefe8bb 100644 (file)
@@ -711,9 +711,9 @@ int x509_main(int argc, char **argv)
                        : "Certificate request self-signature did not match the contents\n");
             goto err;
         }
-        BIO_printf(out, "Certificate request self-signature ok\n");
+        BIO_printf(bio_err, "Certificate request self-signature ok\n");
 
-        print_name(out, "subject=", X509_REQ_get_subject_name(req));
+        print_name(bio_err, "subject=", X509_REQ_get_subject_name(req));
     } else if (!x509toreq && ext_copy != EXT_COPY_UNSET) {
         BIO_printf(bio_err, "Warning: ignoring -copy_extensions since neither -x509toreq nor -req is given\n");
     }