Lines Matching defs:recipient
29 * the GPL. If you do not delete the provisions above, a recipient
152 * - recipientinfos set up with recipient's certificates
232 /* Encrypt the bulk key with the public key of each recipient. */
326 SecCmsRecipient *recipient;
332 PORT_SetErrorString("No recipient data in envelope.");
349 /* if that fails, then we're not an intended recipient and cannot decrypt */
358 recipient = recipient_list[rlIndex];
359 if (!recipient->cert || !recipient->privkey) {
364 ri = envd->recipientInfos[recipient->riIndex];
371 bulkkey = SecCmsRecipientInfoUnwrapBulkKey(ri,recipient->subIndex,
372 recipient->cert,
373 recipient->privkey,
382 // @@@ See 3401088 for details. We need to CFRelease cinfo->bulkkey before recipient->privkey gets CFReleased. It's created with SecKeyCreateWithCSSMKey which is not safe currently. If the private key's SecKeyRef from which we extracted the CSP gets CFRelease before the builkkey does we crash. We should really fix SecKeyCreateWithCSSMKey which is a huge hack currently. To work around this we add recipient->privkey to the cinfo so it gets when cinfo is destroyed.
383 CFRetain(recipient->privkey);
384 cinfo->privkey = recipient->privkey;