Lines Matching refs:d

32             if (ret && PKCS7_type_is_data(p7->d.sign->contents)) {  in PKCS7_ctrl()
34 os = p7->d.sign->contents->d.data; in PKCS7_ctrl()
36 p7->d.sign->contents->d.data = NULL; in PKCS7_ctrl()
46 if (p7->d.sign == NULL || p7->d.sign->contents->d.ptr == NULL) in PKCS7_ctrl()
90 PKCS7_free(p7->d.sign->contents); in PKCS7_set_content()
91 p7->d.sign->contents = p7_data; in PKCS7_set_content()
94 PKCS7_free(p7->d.digest->contents); in PKCS7_set_content()
95 p7->d.digest->contents = p7_data; in PKCS7_set_content()
122 if ((p7->d.sign = PKCS7_SIGNED_new()) == NULL) in PKCS7_set_type()
124 if (!ASN1_INTEGER_set(p7->d.sign->version, 1)) { in PKCS7_set_type()
125 PKCS7_SIGNED_free(p7->d.sign); in PKCS7_set_type()
126 p7->d.sign = NULL; in PKCS7_set_type()
132 if ((p7->d.data = ASN1_OCTET_STRING_new()) == NULL) in PKCS7_set_type()
137 if ((p7->d.signed_and_enveloped = PKCS7_SIGN_ENVELOPE_new()) in PKCS7_set_type()
140 if (!ASN1_INTEGER_set(p7->d.signed_and_enveloped->version, 1)) in PKCS7_set_type()
142 p7->d.signed_and_enveloped->enc_data->content_type in PKCS7_set_type()
147 if ((p7->d.enveloped = PKCS7_ENVELOPE_new()) in PKCS7_set_type()
150 if (!ASN1_INTEGER_set(p7->d.enveloped->version, 0)) in PKCS7_set_type()
152 p7->d.enveloped->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
156 if ((p7->d.encrypted = PKCS7_ENCRYPT_new()) in PKCS7_set_type()
159 if (!ASN1_INTEGER_set(p7->d.encrypted->version, 0)) in PKCS7_set_type()
161 p7->d.encrypted->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
166 if ((p7->d.digest = PKCS7_DIGEST_new()) in PKCS7_set_type()
169 if (!ASN1_INTEGER_set(p7->d.digest->version, 0)) in PKCS7_set_type()
184 p7->d.other = other; in PKCS7_set0_type_other()
199 signer_sk = p7->d.sign->signer_info; in PKCS7_add_signer()
200 md_sk = p7->d.sign->md_algs; in PKCS7_add_signer()
203 signer_sk = p7->d.signed_and_enveloped->signer_info; in PKCS7_add_signer()
204 md_sk = p7->d.signed_and_enveloped->md_algs; in PKCS7_add_signer()
259 sk = &(p7->d.sign->cert); in PKCS7_add_certificate()
262 sk = &(p7->d.signed_and_enveloped->cert); in PKCS7_add_certificate()
280 sk = &(p7->d.sign->crl); in PKCS7_add_crl()
283 sk = &(p7->d.signed_and_enveloped->crl); in PKCS7_add_crl()
418 if (p7->d.ptr == NULL) in STACK_OF()
421 return p7->d.sign->cert; in STACK_OF()
423 return p7->d.signed_and_enveloped->cert; in STACK_OF()
429 if (p7->d.ptr == NULL) in STACK_OF()
432 return p7->d.signed_and_enveloped->recipientinfo; in STACK_OF()
434 return p7->d.enveloped->recipientinfo; in STACK_OF()
452 if (ctx == NULL || p7->d.ptr == NULL) in ossl_pkcs7_resolve_libctx()
522 if ((p7->d.digest->md->parameter = ASN1_TYPE_new()) == NULL) { in PKCS7_set_digest()
526 p7->d.digest->md->parameter->type = V_ASN1_NULL; in PKCS7_set_digest()
527 p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md)); in PKCS7_set_digest()
537 if (p7 == NULL || p7->d.ptr == NULL) in STACK_OF()
540 return p7->d.sign->signer_info; in STACK_OF()
542 return p7->d.signed_and_enveloped->signer_info; in STACK_OF()
589 sk = p7->d.signed_and_enveloped->recipientinfo; in PKCS7_add_recipient_info()
592 sk = p7->d.enveloped->recipientinfo; in PKCS7_add_recipient_info()
673 return (X509_find_by_issuer_and_serial(p7->d.sign->cert, in PKCS7_cert_from_signer_info()
689 ec = p7->d.signed_and_enveloped->enc_data; in PKCS7_set_cipher()
692 ec = p7->d.enveloped->enc_data; in PKCS7_set_cipher()
718 os = p7->d.data; in PKCS7_stream()
722 os = p7->d.signed_and_enveloped->enc_data->enc_data; in PKCS7_stream()
725 p7->d.signed_and_enveloped->enc_data->enc_data = os; in PKCS7_stream()
730 os = p7->d.enveloped->enc_data->enc_data; in PKCS7_stream()
733 p7->d.enveloped->enc_data->enc_data = os; in PKCS7_stream()
738 os = p7->d.sign->contents->d.data; in PKCS7_stream()