summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2011-03-19 11:58:14 +0100
committerRichard Levitte <levitte@openssl.org>2011-03-19 11:58:14 +0100
commit537c982306039df02d1e9410dfe205639b547e7a (patch)
tree4fea2867dfd49eec250ecb40dd9a7339e6febff4 /apps/enc.c
parentTypo. (diff)
downloadopenssl-537c982306039df02d1e9410dfe205639b547e7a.tar.xz
openssl-537c982306039df02d1e9410dfe205639b547e7a.zip
After some adjustments, apply the changes OpenSSL 1.0.0d on OpenVMS
submitted by Steven M. Schweda <sms@antinode.info>
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/enc.c b/apps/enc.c
index c28d8b1948..076225c4cb 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -393,8 +393,10 @@ bad:
if (inf == NULL)
{
+#ifndef OPENSSL_NO_SETVBUF_IONBF
if (bufsize != NULL)
setvbuf(stdin, (char *)NULL, _IONBF, 0);
+#endif /* ndef OPENSSL_NO_SETVBUF_IONBF */
BIO_set_fp(in,stdin,BIO_NOCLOSE);
}
else
@@ -447,8 +449,10 @@ bad:
if (outf == NULL)
{
BIO_set_fp(out,stdout,BIO_NOCLOSE);
+#ifndef OPENSSL_NO_SETVBUF_IONBF
if (bufsize != NULL)
setvbuf(stdout, (char *)NULL, _IONBF, 0);
+#endif /* ndef OPENSSL_NO_SETVBUF_IONBF */
#ifdef OPENSSL_SYS_VMS
{
BIO *tmpbio = BIO_new(BIO_f_linebuffer());