PKCS7_add_recipient
if (!PKCS7_add_recipient(p7, x509)) {
PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);