Lines Matching refs:ne

75     X509_NAME_ENTRY *ne;  in X509_NAME_get_index_by_OBJ()  local
85 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ()
86 if (OBJ_cmp(ne->object, obj) == 0) in X509_NAME_get_index_by_OBJ()
145 X509_NAME_ENTRY *ne; in X509_NAME_add_entry_by_OBJ() local
148 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); in X509_NAME_add_entry_by_OBJ()
149 if (!ne) in X509_NAME_add_entry_by_OBJ()
151 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_OBJ()
152 X509_NAME_ENTRY_free(ne); in X509_NAME_add_entry_by_OBJ()
160 X509_NAME_ENTRY *ne; in X509_NAME_add_entry_by_NID() local
162 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID()
163 if (!ne) in X509_NAME_add_entry_by_NID()
165 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_NID()
166 X509_NAME_ENTRY_free(ne); in X509_NAME_add_entry_by_NID()
174 X509_NAME_ENTRY *ne; in X509_NAME_add_entry_by_txt() local
176 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); in X509_NAME_add_entry_by_txt()
177 if (!ne) in X509_NAME_add_entry_by_txt()
179 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_txt()
180 X509_NAME_ENTRY_free(ne); in X509_NAME_add_entry_by_txt()
188 int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, in X509_NAME_add_entry() argument
224 if ((new_name = X509_NAME_ENTRY_dup(ne)) == NULL) in X509_NAME_add_entry()
242 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, in X509_NAME_ENTRY_create_by_txt() argument
256 nentry = X509_NAME_ENTRY_create_by_OBJ(ne, obj, type, bytes, len); in X509_NAME_ENTRY_create_by_txt()
261 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, in X509_NAME_ENTRY_create_by_NID() argument
274 nentry = X509_NAME_ENTRY_create_by_OBJ(ne, obj, type, bytes, len); in X509_NAME_ENTRY_create_by_NID()
279 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, in X509_NAME_ENTRY_create_by_OBJ() argument
286 if ((ne == NULL) || (*ne == NULL)) { in X509_NAME_ENTRY_create_by_OBJ()
290 ret = *ne; in X509_NAME_ENTRY_create_by_OBJ()
297 if ((ne != NULL) && (*ne == NULL)) in X509_NAME_ENTRY_create_by_OBJ()
298 *ne = ret; in X509_NAME_ENTRY_create_by_OBJ()
301 if ((ne == NULL) || (ret != *ne)) in X509_NAME_ENTRY_create_by_OBJ()
306 int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj) in X509_NAME_ENTRY_set_object() argument
308 if ((ne == NULL) || (obj == NULL)) { in X509_NAME_ENTRY_set_object()
312 ASN1_OBJECT_free(ne->object); in X509_NAME_ENTRY_set_object()
313 ne->object = OBJ_dup(obj); in X509_NAME_ENTRY_set_object()
314 return ((ne->object == NULL) ? 0 : 1); in X509_NAME_ENTRY_set_object()
317 int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, in X509_NAME_ENTRY_set_data() argument
322 if ((ne == NULL) || ((bytes == NULL) && (len != 0))) in X509_NAME_ENTRY_set_data()
325 return ASN1_STRING_set_by_NID(&ne->value, bytes, in X509_NAME_ENTRY_set_data()
327 OBJ_obj2nid(ne->object)) ? 1 : 0; in X509_NAME_ENTRY_set_data()
330 i = ASN1_STRING_set(ne->value, bytes, len); in X509_NAME_ENTRY_set_data()
335 ne->value->type = ASN1_PRINTABLE_type(bytes, len); in X509_NAME_ENTRY_set_data()
337 ne->value->type = type; in X509_NAME_ENTRY_set_data()
342 ASN1_OBJECT *X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne) in X509_NAME_ENTRY_get_object() argument
344 if (ne == NULL) in X509_NAME_ENTRY_get_object()
346 return ne->object; in X509_NAME_ENTRY_get_object()
349 ASN1_STRING *X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne) in X509_NAME_ENTRY_get_data() argument
351 if (ne == NULL) in X509_NAME_ENTRY_get_data()
353 return ne->value; in X509_NAME_ENTRY_get_data()
356 int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne) in X509_NAME_ENTRY_set() argument
358 return ne->set; in X509_NAME_ENTRY_set()