Lines Matching refs:p7
51 PKCS7 *p7; in PKCS12_pack_p7data() local
53 if ((p7 = PKCS7_new()) == NULL) { in PKCS12_pack_p7data()
57 p7->type = OBJ_nid2obj(NID_pkcs7_data); in PKCS12_pack_p7data()
58 if ((p7->d.data = ASN1_OCTET_STRING_new()) == NULL) { in PKCS12_pack_p7data()
63 if (!ASN1_item_pack(sk, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), &p7->d.data)) { in PKCS12_pack_p7data()
67 return p7; in PKCS12_pack_p7data()
70 PKCS7_free(p7); in PKCS12_pack_p7data()
75 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7) in STACK_OF()
77 if (!PKCS7_type_is_data(p7)) { in STACK_OF()
81 return ASN1_item_unpack(p7->d.data, ASN1_ITEM_rptr(PKCS12_SAFEBAGS)); in STACK_OF()
91 PKCS7 *p7; in PKCS12_pack_p7encdata_ex() local
96 if ((p7 = PKCS7_new_ex(ctx, propq)) == NULL) { in PKCS12_pack_p7encdata_ex()
100 if (!PKCS7_set_type(p7, NID_pkcs7_encrypted)) { in PKCS12_pack_p7encdata_ex()
121 X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm); in PKCS12_pack_p7encdata_ex()
122 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata_ex()
123 ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data); in PKCS12_pack_p7encdata_ex()
124 if (!(p7->d.encrypted->enc_data->enc_data = in PKCS12_pack_p7encdata_ex()
132 return p7; in PKCS12_pack_p7encdata_ex()
135 PKCS7_free(p7); in PKCS12_pack_p7encdata_ex()
148 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, in STACK_OF()
151 if (!PKCS7_type_is_encrypted(p7)) in STACK_OF()
153 return PKCS12_item_decrypt_d2i_ex(p7->d.encrypted->enc_data->algorithm, in STACK_OF()
156 p7->d.encrypted->enc_data->enc_data, 1, in STACK_OF()
157 p7->ctx.libctx, p7->ctx.propq); in STACK_OF()
184 PKCS7 *p7; in STACK_OF() local
195 p7 = sk_PKCS7_value(p7s, i); in STACK_OF()
196 if (!ossl_pkcs7_ctx_propagate(p12->authsafes, p7)) in STACK_OF()