From: Daniel Date: Sun, 6 Feb 2022 14:01:14 +0000 (+0100) Subject: Send auxiliary messages to bio_err. X-Git-Tag: openssl-3.2.0-alpha1~2961 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6994cfa08368a710d66caaae4fc07ad35631bf;p=thirdparty%2Fopenssl.git Send auxiliary messages to bio_err. Fixes openssl#17613. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17650) --- diff --git a/apps/x509.c b/apps/x509.c index 29dc74ca9e9..f62f809a9c0 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -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"); }