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