Lines Matching refs:bag
970 static int add_bag_attributes(CBB *bag, const char *name, const uint8_t *key_id, in add_bag_attributes() argument
977 if (!CBB_add_asn1(bag, &attrs, CBS_ASN1_SET)) { in add_bag_attributes()
1013 CBB_flush(bag); in add_bag_attributes()
1018 CBB bag, bag_oid, bag_contents, cert_bag, cert_type, wrapped_cert, cert_value; in add_cert_bag() local
1020 !CBB_add_asn1(cbb, &bag, CBS_ASN1_SEQUENCE) || in add_cert_bag()
1021 !CBB_add_asn1(&bag, &bag_oid, CBS_ASN1_OBJECT) || in add_cert_bag()
1023 !CBB_add_asn1(&bag, &bag_contents, in add_cert_bag()
1039 !add_bag_attributes(&bag, name, key_id, key_id_len) || in add_cert_bag()
1227 CBB content_info, oid, wrapper, data, safe_contents, bag, bag_oid, in PKCS12_create() local
1238 !CBB_add_asn1(&safe_contents, &bag, CBS_ASN1_SEQUENCE) || in PKCS12_create()
1239 !CBB_add_asn1(&bag, &bag_oid, CBS_ASN1_OBJECT) || in PKCS12_create()
1242 !CBB_add_asn1(&bag, &bag_contents, in PKCS12_create()
1248 !add_bag_attributes(&bag, name, key_id, key_id_len) || in PKCS12_create()