Lines Matching refs:obj
29 const ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509at_get_attr_by_NID() local
31 if (obj == NULL) in X509at_get_attr_by_NID()
33 return X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get_attr_by_NID()
37 const ASN1_OBJECT *obj, int lastpos) in X509at_get_attr_by_OBJ() argument
50 if (OBJ_cmp(ex->object, obj) == 0) in X509at_get_attr_by_OBJ()
135 const ASN1_OBJECT *obj, in STACK_OF()
143 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF()
152 **x, const ASN1_OBJECT *obj, in STACK_OF()
157 if (x == NULL || obj == NULL) { in STACK_OF()
161 if (*x != NULL && X509at_get_attr_by_OBJ(*x, obj, -1) != -1) { in STACK_OF()
163 "name=%s", OBJ_nid2sn(OBJ_obj2nid(obj))); in STACK_OF()
167 return ossl_x509at_add1_attr_by_OBJ(x, obj, type, bytes, len); in STACK_OF()
239 const ASN1_OBJECT *obj, int lastpos, int type) in X509at_get0_data_by_OBJ() argument
241 int i = X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get0_data_by_OBJ()
246 if (lastpos <= -2 && X509at_get_attr_by_OBJ(x, obj, i) != -1) in X509at_get0_data_by_OBJ()
272 ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509_ATTRIBUTE_create_by_NID() local
275 if (obj == NULL) { in X509_ATTRIBUTE_create_by_NID()
279 ret = X509_ATTRIBUTE_create_by_OBJ(attr, obj, atrtype, data, len); in X509_ATTRIBUTE_create_by_NID()
281 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_NID()
286 const ASN1_OBJECT *obj, in X509_ATTRIBUTE_create_by_OBJ() argument
301 if (!X509_ATTRIBUTE_set1_object(ret, obj)) in X509_ATTRIBUTE_create_by_OBJ()
320 ASN1_OBJECT *obj = OBJ_txt2obj(atrname, 0); in X509_ATTRIBUTE_create_by_txt() local
323 if (obj == NULL) { in X509_ATTRIBUTE_create_by_txt()
328 nattr = X509_ATTRIBUTE_create_by_OBJ(attr, obj, type, bytes, len); in X509_ATTRIBUTE_create_by_txt()
329 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_txt()
333 int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj) in X509_ATTRIBUTE_set1_object() argument
335 if (attr == NULL || obj == NULL) { in X509_ATTRIBUTE_set1_object()
340 attr->object = OBJ_dup(obj); in X509_ATTRIBUTE_set1_object()