From 270da80bfaa2babd2cd84c52cfd80617120de30e Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 16 Sep 2005 11:45:55 +0000 Subject: [PATCH] Fix for Win32. --- crypto/asn1/tasn_prn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/asn1/tasn_prn.c b/crypto/asn1/tasn_prn.c index 3cc98ea7d2..f595e385f2 100644 --- a/crypto/asn1/tasn_prn.c +++ b/crypto/asn1/tasn_prn.c @@ -343,7 +343,7 @@ int asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const char *sname, *fname; flags = tt->flags; if(pctx->flags & ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME) - sname = tt->item->sname; + sname = ASN1_ITEM_ptr(tt->item)->sname; else sname = NULL; if(pctx->flags & ASN1_PCTX_FLAGS_NO_FIELD_NAME) @@ -378,7 +378,7 @@ int asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, skitem = (ASN1_VALUE *)sk_value((STACK *)*fld, i); if (!asn1_item_print_ctx(out, &skitem, indent + 2, - tt->item, NULL, NULL, 1, pctx)) + ASN1_ITEM_ptr(tt->item), NULL, NULL, 1, pctx)) return 0; } if (!i && BIO_printf(out, "%*s\n", indent + 2, "") <= 0) @@ -390,7 +390,7 @@ int asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, } return 1; } - return asn1_item_print_ctx(out, fld, indent, tt->item, + return asn1_item_print_ctx(out, fld, indent, ASN1_ITEM_ptr(tt->item), fname, sname, 0, pctx); } -- GitLab