diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-21 18:30:30 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-21 18:46:49 +0100 |
commit | 149bd5d6cb3936480e64549902f058153eaf840b (patch) | |
tree | d0968ab0db8ee4d41f47ec68fef30c0e07fa5c29 /apps/apps.c | |
parent | 367071f121d7e941846f612fba60dbb1d12cf9dd (diff) | |
download | openssl-149bd5d6cb3936480e64549902f058153eaf840b.tar.gz |
Just like bio_out, bio_err needs the linebuffer filter on VMS
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index b4307427a5..128f387593 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2486,6 +2486,17 @@ BIO *dup_bio_out(int format) return b; } +BIO *dup_bio_err(int format) +{ + BIO *b = BIO_new_fp(stderr, + BIO_NOCLOSE | (istext(format) ? BIO_FP_TEXT : 0)); +#ifdef OPENSSL_SYS_VMS + if (istext(format)) + b = BIO_push(BIO_new(BIO_f_linebuffer()), b); +#endif + return b; +} + void unbuffer(FILE *fp) { setbuf(fp, NULL); |