ASN1_ITEM should use type name not structure name.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 27 Sep 2016 21:39:12 +0000 (22:39 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 29 Sep 2016 15:21:46 +0000 (16:21 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
include/openssl/asn1t.h

index 8eedfb3..0a7e375 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
                 sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\
                 NULL,\
                 sizeof(stname),\
-                #stname \
+                #tname \
         ASN1_ITEM_end(tname)
 
 # define static_ASN1_SEQUENCE_END_name(stname, tname) \
@@ -208,7 +208,7 @@ extern "C" {
                 sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\
                 &tname##_aux,\
                 sizeof(stname),\
-                #stname \
+                #tname \
         ASN1_ITEM_end(tname)
 # define static_ASN1_SEQUENCE_END_ref(stname, tname) \
         ;\