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 8eedfb3f430229b0dd35ff9da7794d7eeae099b0..0a7e3754c3f2d094fbd29b5d0c9b375fdb16c80a 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) \
         ;\