Lines Matching refs:bag

17 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()
77 int PKCS12_add1_attr_by_NID(PKCS12_SAFEBAG *bag, int nid, int type, in PKCS12_add1_attr_by_NID() argument
80 if (X509at_add1_attr_by_NID(&bag->attrib, nid, type, bytes, len) != NULL) in PKCS12_add1_attr_by_NID()
86 int PKCS12_add1_attr_by_txt(PKCS12_SAFEBAG *bag, const char *attrname, int type, in PKCS12_add1_attr_by_txt() argument
89 if (X509at_add1_attr_by_txt(&bag->attrib, attrname, type, bytes, len) != NULL) in PKCS12_add1_attr_by_txt()
105 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag) in PKCS12_get_friendlyname() argument
109 if ((atype = PKCS12_SAFEBAG_get0_attr(bag, NID_friendlyName)) == NULL) in PKCS12_get_friendlyname()
118 PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag) in STACK_OF()
120 return bag->attrib; in STACK_OF()
123 void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, STACK_OF(X509_ATTRIBUTE) *attrs) in PKCS12_SAFEBAG_set0_attrs() argument
125 if (bag->attrib != attrs) in PKCS12_SAFEBAG_set0_attrs()
126 sk_X509_ATTRIBUTE_free(bag->attrib); in PKCS12_SAFEBAG_set0_attrs()
128 bag->attrib = attrs; in PKCS12_SAFEBAG_set0_attrs()