Lines Matching refs:bag
946 static int add_bag_attributes(CBB *bag, const char *name, const uint8_t *key_id, in add_bag_attributes() argument
953 if (!CBB_add_asn1(bag, &attrs, CBS_ASN1_SET)) { in add_bag_attributes()
989 CBB_flush(bag); in add_bag_attributes()
994 CBB bag, bag_oid, bag_contents, cert_bag, cert_type, wrapped_cert, cert_value; in add_cert_bag() local
996 !CBB_add_asn1(cbb, &bag, CBS_ASN1_SEQUENCE) || in add_cert_bag()
997 !CBB_add_asn1(&bag, &bag_oid, CBS_ASN1_OBJECT) || in add_cert_bag()
999 !CBB_add_asn1(&bag, &bag_contents, in add_cert_bag()
1015 !add_bag_attributes(&bag, name, key_id, key_id_len) || in add_cert_bag()
1203 CBB content_info, oid, wrapper, data, safe_contents, bag, bag_oid, in PKCS12_create() local
1214 !CBB_add_asn1(&safe_contents, &bag, CBS_ASN1_SEQUENCE) || in PKCS12_create()
1215 !CBB_add_asn1(&bag, &bag_oid, CBS_ASN1_OBJECT) || in PKCS12_create()
1218 !CBB_add_asn1(&bag, &bag_contents, in PKCS12_create()
1224 !add_bag_attributes(&bag, name, key_id, key_id_len) || in PKCS12_create()