lib/smime/cmsreclist.h
author J.C. Jones <jjones@mozilla.com>
Fri, 21 Jun 2019 14:39:01 -0700
branchNSS_3_36_BRANCH
changeset 15182 de60f2b7f0c3fac0537346f1077f03d6d849edc5
parent 12781 fb4537ffb64f2a9cb9df8a11b326f308e07c8eba
permissions -rw-r--r--
Added tag NSS_3_36_8_RTM for changeset df8917878ea6

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef _CMSRECLIST_H
#define _CMSRECLIST_H

struct NSSCMSRecipientStr {
    int riIndex;  /* this recipient's index in recipientInfo array */
    int subIndex; /* index into recipientEncryptedKeys */
                  /* (only in NSSCMSKeyAgreeRecipientInfoStr) */
    enum { RLIssuerSN = 0,
           RLSubjKeyID = 1 } kind; /* for conversion recipientinfos -> recipientlist */
    union {
        CERTIssuerAndSN* issuerAndSN;
        SECItem* subjectKeyID;
    } id;

    /* result data (filled out for each recipient that's us) */
    CERTCertificate* cert;
    SECKEYPrivateKey* privkey;
    PK11SlotInfo* slot;
};

typedef struct NSSCMSRecipientStr NSSCMSRecipient;

#endif /* _CMSRECLIST_H */