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:53 +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)

(cherry picked from commit 2a6994cfa08368a710d66caaae4fc07ad35631bf)

apps/x509.c

index 2880ae792a046ba9f115296a15e1464fc7f9249a..c9c10c260e755aa2700a8ef510f26ce4c25becbf 100644 (file)
@@ -706,9 +706,9 @@ int x509_main(int argc, char **argv)
                        : "Certificate request self-signature did not match the contents\n");
             goto end;
         }
-        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");
     }