33 lines
810 B
Diff
33 lines
810 B
Diff
|
--- openssl-0.9.8a/apps/enc.c.orig 2006-07-27 18:37:05.000000000 -0500
|
||
|
+++ openssl-0.9.8a/apps/enc.c 2006-07-27 18:38:30.000000000 -0500
|
||
|
@@ -340,7 +340,7 @@
|
||
|
}
|
||
|
|
||
|
/* It must be large enough for a base64 encoded line */
|
||
|
- if (n < 80) n=80;
|
||
|
+ if (base64 && n < 80) n=80;
|
||
|
|
||
|
bsize=(int)n;
|
||
|
if (verbose) BIO_printf(bio_err,"bufsize=%d\n",bsize);
|
||
|
@@ -370,7 +370,11 @@
|
||
|
}
|
||
|
|
||
|
if (inf == NULL)
|
||
|
+ {
|
||
|
+ if (bufsize != NULL)
|
||
|
+ setvbuf(stdin, (char *)NULL, _IONBF, 0);
|
||
|
BIO_set_fp(in,stdin,BIO_NOCLOSE);
|
||
|
+ }
|
||
|
else
|
||
|
{
|
||
|
if (BIO_read_filename(in,inf) <= 0)
|
||
|
@@ -421,6 +425,8 @@
|
||
|
if (outf == NULL)
|
||
|
{
|
||
|
BIO_set_fp(out,stdout,BIO_NOCLOSE);
|
||
|
+ if (bufsize != NULL)
|
||
|
+ setvbuf(stdout, (char *)NULL, _IONBF, 0);
|
||
|
#ifdef OPENSSL_SYS_VMS
|
||
|
{
|
||
|
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
|