Home
last modified time | relevance | path

Searched refs:bag (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-14.2/crypto/openssl/crypto/pkcs12/
H A Dp12_sbag.c71 return OBJ_obj2nid(bag->value.bag->type); in PKCS12_SAFEBAG_get_bag_nid()
76 return bag->value.bag->type; in PKCS12_SAFEBAG_get0_bag_type()
81 return bag->value.bag->value.other; in PKCS12_SAFEBAG_get0_bag_obj()
88 if (OBJ_obj2nid(bag->value.bag->type) != NID_x509Certificate) in PKCS12_SAFEBAG_get1_cert()
90 return ASN1_item_unpack(bag->value.bag->value.octet, in PKCS12_SAFEBAG_get1_cert()
98 if (OBJ_obj2nid(bag->value.bag->type) != NID_x509Crl) in PKCS12_SAFEBAG_get1_crl()
100 return ASN1_item_unpack(bag->value.bag->value.octet, in PKCS12_SAFEBAG_get1_crl()
161 safebag->value.bag = bag; in PKCS12_SAFEBAG_create_secret()
182 return bag; in PKCS12_SAFEBAG_create0_p8inf()
198 return bag; in PKCS12_SAFEBAG_create0_pkcs8()
[all …]
H A Dp12_attr.c17 int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name, in PKCS12_add_localkeyid() argument
20 if (X509at_add1_attr_by_NID(&bag->attrib, NID_localKeyID, in PKCS12_add_localkeyid()
41 if (X509at_add1_attr_by_NID(&bag->attrib, NID_friendlyName, in PKCS12_add_friendlyname_asc()
51 if (X509at_add1_attr_by_NID(&bag->attrib, NID_friendlyName, in PKCS12_add_friendlyname_utf8()
58 int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag, in PKCS12_add_friendlyname_uni() argument
61 if (X509at_add1_attr_by_NID(&bag->attrib, NID_friendlyName, in PKCS12_add_friendlyname_uni()
70 if (X509at_add1_attr_by_NID(&bag->attrib, NID_ms_csp_name, in PKCS12_add_CSPName_asc()
77 int PKCS12_add1_attr_by_NID(PKCS12_SAFEBAG *bag, int nid, int type, in PKCS12_add1_attr_by_NID() argument
105 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag) in PKCS12_get_friendlyname() argument
118 PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag) in STACK_OF()
[all …]
H A Dp12_crt.c45 PKCS12_SAFEBAG *bag = NULL; in PKCS12_create_ex() local
105 if (!bag) in PKCS12_create_ex()
163 PKCS12_SAFEBAG *bag = NULL; in pkcs12_add_cert_bag() local
178 return bag; in pkcs12_add_cert_bag()
181 PKCS12_SAFEBAG_free(bag); in pkcs12_add_cert_bag()
223 if (bag != NULL) in PKCS12_add_key_ex()
230 if (bag == NULL || !pkcs12_add_bag(pbags, bag)) in PKCS12_add_key_ex()
233 return bag; in PKCS12_add_key_ex()
236 PKCS12_SAFEBAG_free(bag); in PKCS12_add_key_ex()
261 return bag; in PKCS12_add_secret()
[all …]
H A Dp12_add.c23 PKCS12_BAGS *bag; in PKCS12_item_pack_safebag() local
26 if ((bag = PKCS12_BAGS_new()) == NULL) { in PKCS12_item_pack_safebag()
30 bag->type = OBJ_nid2obj(nid1); in PKCS12_item_pack_safebag()
31 if (!ASN1_item_pack(obj, it, &bag->value.octet)) { in PKCS12_item_pack_safebag()
39 safebag->value.bag = bag; in PKCS12_item_pack_safebag()
44 PKCS12_BAGS_free(bag); in PKCS12_item_pack_safebag()
172 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag, in PKCS12_decrypt_skey_ex() argument
176 return PKCS8_decrypt_ex(bag->value.shkeybag, pass, passlen, ctx, propq); in PKCS12_decrypt_skey_ex()
179 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag, in PKCS12_decrypt_skey() argument
182 return PKCS12_decrypt_skey_ex(bag, pass, passlen, NULL, NULL); in PKCS12_decrypt_skey()
H A Dp12_kiss.c23 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen,
184 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, in parse_bag() argument
193 if ((attrib = PKCS12_SAFEBAG_get0_attr(bag, NID_friendlyName))) in parse_bag()
196 if ((attrib = PKCS12_SAFEBAG_get0_attr(bag, NID_localKeyID))) in parse_bag()
199 switch (PKCS12_SAFEBAG_get_nid(bag)) { in parse_bag()
203 *pkey = EVP_PKCS82PKEY(PKCS12_SAFEBAG_get0_p8inf(bag)); in parse_bag()
211 if ((p8 = PKCS12_decrypt_skey(bag, pass, passlen)) == NULL) in parse_bag()
221 || PKCS12_SAFEBAG_get_bag_nid(bag) != NID_x509Certificate) in parse_bag()
223 if ((x509 = PKCS12_SAFEBAG_get1_cert(bag)) == NULL) in parse_bag()
252 return parse_bags(PKCS12_SAFEBAG_get0_safes(bag), pass, passlen, pkey, in parse_bag()
H A Dp12_npas.c23 static int newpass_bag(PKCS12_SAFEBAG *bag, const char *oldpass,
146 static int newpass_bag(PKCS12_SAFEBAG *bag, const char *oldpass, in newpass_bag() argument
154 if (PKCS12_SAFEBAG_get_nid(bag) != NID_pkcs8ShroudedKeyBag) in newpass_bag()
157 if ((p8 = PKCS8_decrypt(bag->value.shkeybag, oldpass, -1)) == NULL) in newpass_bag()
159 X509_SIG_get0(bag->value.shkeybag, &shalg, NULL); in newpass_bag()
169 X509_SIG_free(bag->value.shkeybag); in newpass_bag()
170 bag->value.shkeybag = p8new; in newpass_bag()
H A Dp12_asn.c55 ADB_ENTRY(NID_certBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
56 ADB_ENTRY(NID_crlBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
57 ADB_ENTRY(NID_secretBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0))
H A Dp12_local.h25 struct pkcs12_bag_st *bag; /* secret, crl and certbag */ member
/freebsd-14.2/crypto/openssl/test/helpers/
H A Dpkcs12.c378 PKCS12_SAFEBAG *bag = NULL; in add_certbag() local
396 if (!TEST_ptr(bag)) { in add_certbag()
412 PKCS12_SAFEBAG *bag = NULL; in add_keybag() local
431 if (!TEST_ptr(bag)) { in add_keybag()
452 if (!TEST_ptr(bag)) { in add_secretbag()
547 const PKCS12_SAFEBAG *bag; in check_certbag() local
553 if (!TEST_ptr(bag)) { in check_certbag()
583 const PKCS12_SAFEBAG *bag; in check_keybag() local
589 if (!TEST_ptr(bag)) { in check_keybag()
641 const PKCS12_SAFEBAG *bag; in check_secretbag() local
[all …]
/freebsd-14.2/crypto/openssl/doc/man3/
H A DPKCS12_SAFEBAG_get1_cert.pod16 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
18 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);
19 int PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);
20 int PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);
21 const ASN1_TYPE *PKCS12_SAFEBAG_get0_bag_obj(const PKCS12_SAFEBAG *bag);
22 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_bag_type(const PKCS12_SAFEBAG *bag);
23 X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);
24 X509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);
27 const X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);
39 B<PKCS12_SAFEBAG>. This corresponds to the bag type for most bags, but can be
[all …]
H A DPKCS12_add_friendlyname_asc.pod13 int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,
16 int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,
19 int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
33 I<bag> is the B<PKCS12_SAFEBAG> to add the attribute to.
H A DPKCS12_decrypt_skey.pod12 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
14 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
21 PKCS12_decrypt_skey() Decrypt the PKCS#8 shrouded keybag contained within I<bag>
H A DPKCS12_add1_attr_by_NID.pod12 int PKCS12_add1_attr_by_NID(PKCS12_SAFEBAG *bag, int nid, int type,
14 int PKCS12_add1_attr_by_txt(PKCS12_SAFEBAG *bag, const char *attrname, int type,
19 These functions add a PKCS#12 Attribute to the Attribute Set of the B<bag>.
H A DPKCS12_add_CSPName_asc.pod11 int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name, int namelen);
17 I<bag> is the B<PKCS12_SAFEBAG> to add the attribute to.
H A DPKCS12_add_localkeyid.pod11 int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, const char *name,
19 I<bag> is the B<PKCS12_SAFEBAG> to add the attribute to.
H A DPKCS12_get_friendlyname.pod11 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
18 I<bag> is the B<PKCS12_SAFEBAG> to retrieve the attribute from.
H A DPKCS12_SAFEBAG_get0_attrs.pod12 const STACK_OF(X509_ATTRIBUTE) *PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);
20 PKCS#12 safeBag. I<bag> is the B<PKCS12_SAFEBAG> to retrieve the attributes from.
/freebsd-14.2/crypto/openssl/include/openssl/
H A Dpkcs12.h125 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
128 int PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);
129 int PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);
133 X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);
134 X509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);
136 PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);
167 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
207 int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,
209 int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
218 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
[all …]
H A Dpkcs12.h.in102 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
105 int PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);
106 int PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);
110 X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);
111 X509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);
113 PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);
144 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
184 int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,
186 int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
195 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
[all …]
/freebsd-14.2/crypto/openssl/demos/pkcs12/
H A Dpkread.c25 PKCS12_SAFEBAG *bag; in find_friendly_name() local
37 bag = sk_PKCS12_SAFEBAG_value(bags, m); in find_friendly_name()
38 name = PKCS12_get_friendlyname(bag); in find_friendly_name()
/freebsd-14.2/crypto/openssl/apps/
H A Dpkcs12.c902 int dump_certs_pkeys_bag(BIO *out, const PKCS12_SAFEBAG *bag, in dump_certs_pkeys_bag() argument
913 attrs = PKCS12_SAFEBAG_get0_attrs(bag); in dump_certs_pkeys_bag()
915 switch (PKCS12_SAFEBAG_get_nid(bag)) { in dump_certs_pkeys_bag()
922 p8c = PKCS12_SAFEBAG_get0_p8inf(bag); in dump_certs_pkeys_bag()
936 tp8 = PKCS12_SAFEBAG_get0_pkcs8(bag); in dump_certs_pkeys_bag()
943 if ((p8 = PKCS12_decrypt_skey(bag, pass, passlen)) == NULL) in dump_certs_pkeys_bag()
960 if (PKCS12_SAFEBAG_get0_attr(bag, NID_localKeyID)) { in dump_certs_pkeys_bag()
966 if (PKCS12_SAFEBAG_get_bag_nid(bag) != NID_x509Certificate) in dump_certs_pkeys_bag()
968 if ((x509 = PKCS12_SAFEBAG_get1_cert(bag)) == NULL) in dump_certs_pkeys_bag()
982 print_attribute(out, PKCS12_SAFEBAG_get0_bag_obj(bag)); in dump_certs_pkeys_bag()
[all …]
/freebsd-14.2/share/dict/
H A Dweb2a1291 alms bag
3290 bag boom
3293 bag cap
3309 bag fox
3330 bag net
3335 bag rack
3347 bag work
6673 body bag
18611 dye bag
29585 ice bag
[all …]
/freebsd-14.2/usr.bin/units/
H A Ddefinitions.units606 bag 94 lb
/freebsd-14.2/usr.sbin/bsdconfig/share/media/
H A Dftp.subr520 # If we can't initialize the network, bag it!
/freebsd-14.2/contrib/one-true-awk/testdir/
H A Dbib5561 Thou shalt not have in thy bag divers weights, a great and a small.
7659 …hose him five smooth stones out of the brook, and put them in a shepherd's bag which he had, even …
7668 And David put his hand in his bag, and took thence a stone, and slang it, and smote the Philistine …
13199 My transgression is sealed up in a bag, and thou sewest up mine iniquity.
16596 He hath taken a bag of money with him, and will come home at the day appointed.
16852 A just weight and balance are the LORD's: all the weights of the bag are his work.
18593 They lavish gold out of the bag, and weigh silver in the balance, and hire a goldsmith; and he make…
22660 Shall I count them pure with the wicked balances, and with the bag of deceitful weights?
22847 …u, but there is none warm; and he that earneth wages earneth wages to put it into a bag with holes.
26587 This he said, not that he cared for the poor; but because he was a thief, and had the bag, and bare…
[all …]

12