Implement internal ASN.1 types INT32, UINT32, INT64, UINT64
[openssl.git] / crypto / asn1 / tasn_prn.c
index f53e9056aa90afbb36773b9c850f2ea92d1bf70b..b5698060e8defee66d1b48fe2e27280a7f7baac6 100644 (file)
@@ -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)