X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=include%2Fopenssl%2Fasn1t.h;h=f0244dc254215c2876e9baeab01b3b7e153e4165;hb=cf517a6d3d2548b1a79155df5c384f4a4b3924d6;hp=4a4e1ef255ec91b5d24a191d6a05bf051327c557;hpb=05e97f1d4f940c765e5c93771fe20820acca4438;p=openssl.git diff --git a/include/openssl/asn1t.h b/include/openssl/asn1t.h index 4a4e1ef255..f0244dc254 100644 --- a/include/openssl/asn1t.h +++ b/include/openssl/asn1t.h @@ -103,7 +103,7 @@ extern "C" { static const ASN1_ITEM local_it = { # define static_ASN1_ITEM_start(itname) \ - ASN1_ITEM_start(itname) + static ASN1_ITEM_start(itname) # define ASN1_ITEM_end(itname) \ }; \ @@ -390,6 +390,8 @@ extern "C" { # endif /* Plain simple type */ # define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type) +/* Embedded simple type */ +# define ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type) /* OPTIONAL simple type */ # define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type) @@ -616,6 +618,9 @@ struct ASN1_ADB_TABLE_st { # define ASN1_TFLG_NDEF (0x1<<11) +/* Field is embedded and not a pointer */ +# define ASN1_TFLG_EMBED (0x1 << 12) + /* This is the actual ASN1 item itself */ struct ASN1_ITEM_st {