Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_sbag.c16 ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid) in PKCS12_get_attr() argument
18 return PKCS12_get_attr_gen(bag->attrib, attr_nid); in PKCS12_get_attr()
22 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag, in PKCS12_SAFEBAG_get0_attr() argument
25 return PKCS12_get_attr_gen(bag->attrib, attr_nid); in PKCS12_SAFEBAG_get0_attr()
33 const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag) in PKCS12_SAFEBAG_get0_p8inf() argument
35 if (PKCS12_SAFEBAG_get_nid(bag) != NID_keyBag) in PKCS12_SAFEBAG_get0_p8inf()
37 return bag->value.keybag; in PKCS12_SAFEBAG_get0_p8inf()
40 const X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag) in PKCS12_SAFEBAG_get0_pkcs8() argument
42 if (OBJ_obj2nid(bag->type) != NID_pkcs8ShroudedKeyBag) in PKCS12_SAFEBAG_get0_pkcs8()
44 return bag->value.shkeybag; in PKCS12_SAFEBAG_get0_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()
38 int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name, in PKCS12_add_friendlyname_asc() argument
41 if (X509at_add1_attr_by_NID(&bag->attrib, NID_friendlyName, in PKCS12_add_friendlyname_asc()
48 int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name, in PKCS12_add_friendlyname_utf8() argument
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()
68 int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name, int namelen) in PKCS12_add_CSPName_asc() argument
70 if (X509at_add1_attr_by_NID(&bag->attrib, NID_ms_csp_name, in PKCS12_add_CSPName_asc()
[all …]
H A Dp12_crt.c16 PKCS12_SAFEBAG *bag);
24 static int copy_bag_attr(PKCS12_SAFEBAG *bag, EVP_PKEY *pkey, int nid) in copy_bag_attr() argument
32 if (!X509at_add1_attr(&bag->attrib, attr)) in copy_bag_attr()
45 PKCS12_SAFEBAG *bag = NULL; in PKCS12_create_ex() local
85 bag = pkcs12_add_cert_bag(&bags, cert, name, namelen, pkeyid, pkeyidlen); in PKCS12_create_ex()
102 bag = PKCS12_add_key_ex(&bags, pkey, keytype, iter, nid_key, pass, in PKCS12_create_ex()
105 if (!bag) in PKCS12_create_ex()
108 if (!copy_bag_attr(bag, pkey, NID_ms_csp_name)) in PKCS12_create_ex()
110 if (!copy_bag_attr(bag, pkey, NID_LocalKeySet)) in PKCS12_create_ex()
113 if (name && !PKCS12_add_friendlyname(bag, name, -1)) in PKCS12_create_ex()
[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/crypto/openssl/test/helpers/
H A Dpkcs12.c36 static int add_attributes(PKCS12_SAFEBAG *bag, const PKCS12_ATTR *attrs);
341 static int add_attributes(PKCS12_SAFEBAG *bag, const PKCS12_ATTR *attrs) in add_attributes() argument
355 if (!TEST_true(PKCS12_add_friendlyname(bag, p_attr->value, -1))) in add_attributes()
358 if (!TEST_true(PKCS12_add_localkeyid(bag, (unsigned char *)p_attr->value, in add_attributes()
363 if (!TEST_true(PKCS12_add1_attr_by_txt(bag, p_attr->oid, MBSTRING_ASC, in add_attributes()
378 PKCS12_SAFEBAG *bag = NULL; in add_certbag() local
395 bag = PKCS12_add_cert(&pb->bags, cert); in add_certbag()
396 if (!TEST_ptr(bag)) { in add_certbag()
401 if (!TEST_true(add_attributes(bag, attrs))) { in add_certbag()
412 PKCS12_SAFEBAG *bag = NULL; in add_keybag() local
[all …]
/freebsd/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);
25 const STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);
26 const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);
[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/crypto/openssl/include/openssl/
H A Dpkcs12.h113 OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag,
125 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
127 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(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);
130 const ASN1_TYPE *PKCS12_SAFEBAG_get0_bag_obj(const PKCS12_SAFEBAG *bag);
131 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_bag_type(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);
[all …]
H A Dpkcs12.h.in90 OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag,
102 const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
104 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(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);
107 const ASN1_TYPE *PKCS12_SAFEBAG_get0_bag_obj(const PKCS12_SAFEBAG *bag);
108 const ASN1_OBJECT *PKCS12_SAFEBAG_get0_bag_type(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);
[all …]
/freebsd/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/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()
980 i2a_ASN1_OBJECT(bio_err, PKCS12_SAFEBAG_get0_bag_type(bag)); in dump_certs_pkeys_bag()
[all …]
/freebsd/share/dict/
H A Dweb2a1291 alms bag
3286 bag bearer
3287 bag-bearing
3288 bag beater
3289 bag-bedded
3290 bag boom
3291 bag bundler
3292 bag-bundling
3293 bag cap
3294 bag-cheeked
[all …]
H A Dweb217628 bag
/freebsd/usr.bin/units/
H A Ddefinitions.units606 bag 94 lb
/freebsd/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 …]