提交 31dad404 编写于 作者: F FdaSilvaYY 提交者: Rich Salz

Add error checking, small nit on ouput

Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1632)
上级 12d2ee21
...@@ -57,9 +57,10 @@ int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) ...@@ -57,9 +57,10 @@ int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions)
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
ex = X509v3_get_ext(extensions, i); ex = X509v3_get_ext(extensions, i);
obj = X509_EXTENSION_get_object(ex); 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); 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)) { if (!X509V3_EXT_print(bio, ex, 0, 4)) {
BIO_printf(bio, "%4s", ""); BIO_printf(bio, "%4s", "");
ASN1_STRING_print(bio, X509_EXTENSION_get_data(ex)); ASN1_STRING_print(bio, X509_EXTENSION_get_data(ex));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册