[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Rich Salz
rsalz at openssl.org
Wed Oct 19 10:42:54 UTC 2016
The branch OpenSSL_1_1_0-stable has been updated
via c347c5a3b6d51cbd24cfab45ab2698c7757a3ffc (commit)
from be118c3d574d340031ef3ad1fbffa171fdfee580 (commit)
- Log -----------------------------------------------------------------
commit c347c5a3b6d51cbd24cfab45ab2698c7757a3ffc
Author: FdaSilvaYY <fdasilvayy at gmail.com>
Date: Tue Sep 27 23:03:41 2016 +0200
Add error checking, small nit on ouput
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1632)
(cherry picked from commit 31dad404fd6854ec8dd697bcccfef1e8dba3faff)
-----------------------------------------------------------------------
Summary of changes:
crypto/ts/ts_lib.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/crypto/ts/ts_lib.c b/crypto/ts/ts_lib.c
index 99c0580..de36e0e 100644
--- a/crypto/ts/ts_lib.c
+++ b/crypto/ts/ts_lib.c
@@ -57,9 +57,10 @@ int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions)
for (i = 0; i < n; i++) {
ex = X509v3_get_ext(extensions, i);
obj = X509_EXTENSION_get_object(ex);
- i2a_ASN1_OBJECT(bio, obj);
+ if (i2a_ASN1_OBJECT(bio, obj) < 0)
+ return 0;
critical = X509_EXTENSION_get_critical(ex);
- BIO_printf(bio, ": %s\n", critical ? "critical" : "");
+ BIO_printf(bio, ":%s\n", critical ? " critical" : "");
if (!X509V3_EXT_print(bio, ex, 0, 4)) {
BIO_printf(bio, "%4s", "");
ASN1_STRING_print(bio, X509_EXTENSION_get_data(ex));
More information about the openssl-commits
mailing list