disable stdin buffering in load_cert
This commit is contained in:
parent
c15e036398
commit
620cea37e0
5
CHANGES
5
CHANGES
@ -3,6 +3,11 @@
|
|||||||
|
|
||||||
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
|
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
|
||||||
|
|
||||||
|
*) Disable stdin buffering in load_cert (apps/apps.c) so that no certs are
|
||||||
|
skipped when using openssl x509 multiple times on a single input file,
|
||||||
|
e.g. "(openssl x509 -out cert1; openssl x509 -out cert2) <certs".
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
*) Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
|
*) Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
|
||||||
set string type: to handle setting ASN1_TIME structures. Fix ca
|
set string type: to handle setting ASN1_TIME structures. Fix ca
|
||||||
utility to correctly initialize revocation date of CRLs.
|
utility to correctly initialize revocation date of CRLs.
|
||||||
|
@ -476,7 +476,10 @@ X509 *load_cert(BIO *err, char *file, int format)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
|
{
|
||||||
|
setvbuf(stdin, NULL, _IONBF, 0);
|
||||||
BIO_set_fp(cert,stdin,BIO_NOCLOSE);
|
BIO_set_fp(cert,stdin,BIO_NOCLOSE);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (BIO_read_filename(cert,file) <= 0)
|
if (BIO_read_filename(cert,file) <= 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user