diff options
author | Bodo Möller <bodo@openssl.org> | 2001-02-10 13:12:35 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-02-10 13:12:35 +0000 |
commit | 620cea37e0f904cb823a9c4bd84206d94622ea54 (patch) | |
tree | 4d09e8b5e0cdcab653903ad4cdf4419b592dfc71 /apps/apps.c | |
parent | c15e0363982daf8ef68a28632652311fbb85b2a3 (diff) |
disable stdin buffering in load_cert
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index ddc4df0773..a1397a36d8 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -476,7 +476,10 @@ X509 *load_cert(BIO *err, char *file, int format) } if (file == NULL) + { + setvbuf(stdin, NULL, _IONBF, 0); BIO_set_fp(cert,stdin,BIO_NOCLOSE); + } else { if (BIO_read_filename(cert,file) <= 0) |