Lines Matching defs:p7i
355 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
361 if (!ASN1_INTEGER_set(p7i->version, 1))
363 if (!X509_NAME_set(&p7i->issuer_and_serial->issuer,
371 M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial);
372 if (!(p7i->issuer_and_serial->serial =
378 p7i->pkey = pkey;
382 X509_ALGOR_set0(p7i->digest_alg, OBJ_nid2obj(EVP_MD_type(dgst)),
386 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_SIGN, 0, p7i);
516 int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509)
520 if (!ASN1_INTEGER_set(p7i->version, 0))
522 if (!X509_NAME_set(&p7i->issuer_and_serial->issuer,
526 M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial);
527 if (!(p7i->issuer_and_serial->serial =
539 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_ENCRYPT, 0, p7i);
554 p7i->cert = x509;