mirror of
https://github.com/openssl/openssl.git
synced 2025-04-18 20:40:45 +08:00
Print <ABSENT> if a STACK is NULL.
If a STACK (corresponding to SEQUENCE OF or SET OF) is NULL then the field is absent as opposed to empty (present but has zero elements). Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
adffae15d3
commit
73a9f60dd1
@ -315,7 +315,8 @@ static int asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent,
|
||||
pctx))
|
||||
return 0;
|
||||
}
|
||||
if (!i && BIO_printf(out, "%*s<EMPTY>\n", indent + 2, "") <= 0)
|
||||
if (i == 0 && BIO_printf(out, "%*s<%s>\n", indent + 2, "",
|
||||
stack == NULL ? "ABSENT" : "EMPTY") <= 0)
|
||||
return 0;
|
||||
if (pctx->flags & ASN1_PCTX_FLAGS_SHOW_SEQUENCE) {
|
||||
if (BIO_printf(out, "%*s}\n", indent, "") <= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user