diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-03-24 22:14:02 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-03-24 22:14:02 +0000 |
commit | be86c7fc8784f785b20bad50f71327a57068a565 (patch) | |
tree | bacdef7b8b41c7287412f0f6c3336b283f7b8617 /crypto/cms/cms_lcl.h | |
parent | 6205171362d8a0c07a84d07c425f540507e5f685 (diff) |
Add signed receipt ASN1 structures. Initial GENERAL_NAME utility functions.
Diffstat (limited to 'crypto/cms/cms_lcl.h')
-rw-r--r-- | crypto/cms/cms_lcl.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/cms/cms_lcl.h b/crypto/cms/cms_lcl.h index f23d096607..0956721938 100644 --- a/crypto/cms/cms_lcl.h +++ b/crypto/cms/cms_lcl.h @@ -91,6 +91,7 @@ typedef struct CMS_KEKIdentifier_st CMS_KEKIdentifier; typedef struct CMS_KEKRecipientInfo_st CMS_KEKRecipientInfo; typedef struct CMS_PasswordRecipientInfo_st CMS_PasswordRecipientInfo; typedef struct CMS_OtherRecipientInfo_st CMS_OtherRecipientInfo; +typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom; struct CMS_ContentInfo_st { @@ -374,6 +375,37 @@ struct CMS_OtherKeyAttribute_st ASN1_TYPE *keyAttr; }; +/* ESS structures */ + +#ifdef HEADER_X509V3_H + +struct CMS_ReceiptRequest_st + { + ASN1_OCTET_STRING *signedContentIdentifier; + CMS_ReceiptsFrom *receiptsFrom; + GENERAL_NAMES *receiptsTo; + }; + + +struct CMS_ReceiptsFrom_st + { + int type; + union + { + long allOrFirstTier; + GENERAL_NAMES *receiptList; + } d; + }; +#endif + +struct CMS_Receipt_st + { + long version; + ASN1_OBJECT *contentType; + ASN1_OCTET_STRING *signedContentIdentifier; + ASN1_OCTET_STRING *originatorSignatureValue; + }; + DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) DECLARE_ASN1_ITEM(CMS_SignerInfo) DECLARE_ASN1_ITEM(CMS_IssuerAndSerialNumber) |