summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1t.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-12-13 23:54:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-12-13 23:54:30 +0000
commit06db4253e2eb1208b60b5107c6a02d385a0e2129 (patch)
tree4a20b56f7d04b4e577cb5a41c1767fd8012fbeb1 /crypto/asn1/asn1t.h
parent4ce7894c4ab87d7c635e45bf5ff8d1d729b79527 (diff)
Change the PKCS7 structure to use SEQUENCE OF for the
authenticated attributes: this is used to retain the original encoding and not break signatures. Support for a SET OF which reorders the STACK when encoding a structure. This will be used with the PKCS7 code.
Diffstat (limited to 'crypto/asn1/asn1t.h')
-rw-r--r--crypto/asn1/asn1t.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h
index 430c37124a..ea880d5150 100644
--- a/crypto/asn1/asn1t.h
+++ b/crypto/asn1/asn1t.h
@@ -375,6 +375,14 @@ struct ASN1_ADB_TABLE_st {
/* Field is a SEQUENCE OF */
#define ASN1_TFLG_SEQUENCE_OF (0x2 << 1)
+/* Special case: this refers to a SET OF that
+ * will be sorted into DER order when encoded *and*
+ * the corresponding STACK will be modified to match
+ * the new order.
+ */
+#define ASN1_TFLG_SET_ORDER (0x3 << 1)
+
+/* Mask for SET OF or SEQUENCE OF */
#define ASN1_TFLG_SK_MASK (0x3 << 1)
/* These flags mean the tag should be taken from the