CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25179)
#ifndef OPENSSL_NO_DSA
# include <openssl/dsa.h>
#endif
+#include "internal/e_os.h" /* For isatty() */
#define BITS "default_bits"
#define KEYFILE "default_keyfile"
if (infile == NULL) {
if (gen_x509)
newreq = 1;
- else if (!newreq)
+ else if (!newreq && isatty(fileno_stdin()))
BIO_printf(bio_err,
"Warning: Will read cert request from stdin since no -in option is given\n");
}