michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _CMSRECLIST_H michael@0: #define _CMSRECLIST_H michael@0: michael@0: struct NSSCMSRecipientStr { michael@0: int riIndex; /* this recipient's index in recipientInfo array */ michael@0: int subIndex; /* index into recipientEncryptedKeys */ michael@0: /* (only in NSSCMSKeyAgreeRecipientInfoStr) */ michael@0: enum {RLIssuerSN=0, RLSubjKeyID=1} kind; /* for conversion recipientinfos -> recipientlist */ michael@0: union { michael@0: CERTIssuerAndSN * issuerAndSN; michael@0: SECItem * subjectKeyID; michael@0: } id; michael@0: michael@0: /* result data (filled out for each recipient that's us) */ michael@0: CERTCertificate * cert; michael@0: SECKEYPrivateKey * privkey; michael@0: PK11SlotInfo * slot; michael@0: }; michael@0: michael@0: typedef struct NSSCMSRecipientStr NSSCMSRecipient; michael@0: michael@0: #endif /* _CMSRECLIST_H */