Lines Matching refs:si
22 static int pkcs7_copy_existing_digest(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
122 PKCS7_SIGNER_INFO *si = NULL; in PKCS7_sign_add_signer() local
131 if ((si = PKCS7_add_signature(p7, signcert, pkey, md)) == NULL) { in PKCS7_sign_add_signer()
136 si->ctx = ossl_pkcs7_get0_ctx(p7); in PKCS7_sign_add_signer()
143 if (!PKCS7_add_attrib_content_type(si, NULL)) in PKCS7_sign_add_signer()
163 || !PKCS7_add_attrib_smimecap(si, smcap)) in PKCS7_sign_add_signer()
169 if (!pkcs7_copy_existing_digest(p7, si)) in PKCS7_sign_add_signer()
172 && !PKCS7_SIGNER_INFO_sign(si)) in PKCS7_sign_add_signer()
176 return si; in PKCS7_sign_add_signer()
187 static int pkcs7_copy_existing_digest(PKCS7 *p7, PKCS7_SIGNER_INFO *si) in pkcs7_copy_existing_digest() argument
196 if (si == sitmp) in pkcs7_copy_existing_digest()
200 if (!OBJ_cmp(si->digest_alg->algorithm, sitmp->digest_alg->algorithm)) { in pkcs7_copy_existing_digest()
208 return PKCS7_add1_attrib_digest(si, osdig->data, osdig->length); in pkcs7_copy_existing_digest()
223 PKCS7_SIGNER_INFO *si; in PKCS7_verify() local
345 si = sk_PKCS7_SIGNER_INFO_value(sinfos, i); in PKCS7_verify()
347 j = PKCS7_signatureVerify(p7bio, p7, si, signer); in PKCS7_verify()
372 PKCS7_SIGNER_INFO *si; in STACK_OF() local
403 si = sk_PKCS7_SIGNER_INFO_value(sinfos, i); in STACK_OF()
404 ias = si->issuer_and_serial; in STACK_OF()