Home
last modified time | relevance | path

Searched refs:safes (Results 1 – 11 of 11) sorted by relevance

/freebsd/crypto/openssl/test/helpers/
H A Dpkcs12.c125 pb->safes = NULL; in start_pkcs12()
160 p12 = PKCS12_add_safes(pb->safes, 0); in generate_p12()
162 p12 = PKCS12_add_safes_ex(pb->safes, 0, test_ctx, test_propq); in generate_p12()
167 sk_PKCS7_pop_free(pb->safes, PKCS7_free); in generate_p12()
282 if (!TEST_true(PKCS12_add_safe(&pb->safes, pb->bags, -1, 0, NULL))) in end_contentinfo()
294 if (!TEST_true(PKCS12_add_safe(&pb->safes, pb->bags, enc->nid, in end_contentinfo_encrypted()
298 if (!TEST_true(PKCS12_add_safe_ex(&pb->safes, pb->bags, enc->nid, in end_contentinfo_encrypted()
309 static STACK_OF(PKCS12_SAFEBAG) *decode_contentinfo(STACK_OF(PKCS7) *safes, int idx, const PKCS12_E… in STACK_OF()
313 PKCS7 *p7 = sk_PKCS7_value(safes, idx); in STACK_OF()
672 pb->safes = PKCS12_unpack_authsafes(p12); in start_check_pkcs12()
[all …]
H A Dpkcs12.h47 STACK_OF(PKCS7) *safes;
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_crt.c43 STACK_OF(PKCS7) *safes = NULL; in PKCS12_create_ex()
94 if (bags && !PKCS12_add_safe_ex(&safes, bags, nid_cert, iter, pass, in PKCS12_create_ex()
119 if (bags && !PKCS12_add_safe(&safes, bags, -1, 0, NULL)) in PKCS12_create_ex()
125 p12 = PKCS12_add_safes_ex(safes, 0, ctx, propq); in PKCS12_create_ex()
130 sk_PKCS7_pop_free(safes, PKCS7_free); in PKCS12_create_ex()
132 safes = NULL; in PKCS12_create_ex()
142 sk_PKCS7_pop_free(safes, PKCS7_free); in PKCS12_create_ex()
341 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int nid_p7, in PKCS12_add_safes_ex() argument
352 if (!PKCS12_pack_authsafes(p12, safes)) { in PKCS12_add_safes_ex()
361 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int nid_p7) in PKCS12_add_safes() argument
[all …]
H A Dp12_local.h28 STACK_OF(PKCS12_SAFEBAG) *safes;
H A Dp12_add.c185 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes) in PKCS12_pack_authsafes() argument
187 if (ASN1_item_pack(safes, ASN1_ITEM_rptr(PKCS12_AUTHSAFES), in PKCS12_pack_authsafes()
H A Dp12_asn.c54 …ADB_ENTRY(NID_safeContentsBag, ASN1_EXP_SEQUENCE_OF(PKCS12_SAFEBAG, value.safes, PKCS12_SAFEBAG, 0…
H A Dp12_sbag.c52 return bag->value.safes; in STACK_OF()
/freebsd/crypto/openssl/demos/pkcs12/
H A Dpkread.c20 STACK_OF(PKCS7) *safes; in find_friendly_name()
27 if ((safes = PKCS12_unpack_authsafes(p12)) == NULL) in find_friendly_name()
30 for (n = 0; n < sk_PKCS7_num(safes) && name == NULL; n++) { in find_friendly_name()
31 safe = sk_PKCS7_value(safes, n); in find_friendly_name()
43 sk_PKCS7_pop_free(safes, PKCS7_free); in find_friendly_name()
/freebsd/crypto/openssl/doc/man3/
H A DPKCS12_add_safe.pod18 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
19 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,
47 PKCS7 contentInfos. The I<safes> are enclosed first within a PKCS7 contentInfo
/freebsd/crypto/openssl/include/openssl/
H A Dpkcs12.h198 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
333 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
334 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,
H A Dpkcs12.h.in175 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
310 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
311 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,