Lines Matching refs:attrs
36 static int add_attributes(PKCS12_SAFEBAG *bag, const PKCS12_ATTR *attrs);
45 static int check_attrs(const STACK_OF(X509_ATTRIBUTE) *bag_attrs, const PKCS12_ATTR *attrs);
346 STACK_OF(X509_ATTRIBUTE)* attrs = NULL; in add_attributes()
364 attrs = (STACK_OF(X509_ATTRIBUTE)*)PKCS12_SAFEBAG_get0_attrs(bag); in add_attributes()
366 X509at_add1_attr(&attrs, x509_attr); in add_attributes()
367 PKCS12_SAFEBAG_set0_attrs(bag, attrs); in add_attributes()
384 const PKCS12_ATTR *attrs) in add_certbag() argument
409 if (!TEST_true(add_attributes(bag, attrs))) { in add_certbag()
418 const PKCS12_ATTR *attrs, const PKCS12_ENC *enc) in add_keybag() argument
443 if (!add_attributes(bag, attrs)) in add_keybag()
450 const PKCS12_ATTR *attrs) in add_secretbag() argument
464 if (!add_attributes(bag, attrs)) in add_secretbag()
512 static int check_attrs(const STACK_OF(X509_ATTRIBUTE) *bag_attrs, const PKCS12_ATTR *attrs) in check_attrs() argument
521 const PKCS12_ATTR *p_attr = attrs; in check_attrs()
550 const PKCS12_ATTR *attrs) in check_certbag() argument
564 if (!check_attrs(PKCS12_SAFEBAG_get0_attrs(bag), attrs) in check_certbag()
584 const PKCS12_ATTR *attrs, const PKCS12_ENC *enc) in check_keybag() argument
601 if (!check_attrs(PKCS12_SAFEBAG_get0_attrs(bag), attrs)) { in check_keybag()
646 …d check_secretbag(PKCS12_BUILDER *pb, int secret_nid, const char *secret, const PKCS12_ATTR *attrs) in check_secretbag() argument
659 if (!check_attrs(PKCS12_SAFEBAG_get0_attrs(bag), attrs) in check_secretbag()