Lines Matching refs:ret
72 int ret = 0, i, push; in OBJ_NAME_new_index() local
87 ret = names_type_num; in OBJ_NAME_new_index()
92 ret = 0; in OBJ_NAME_new_index()
102 ret = 0; in OBJ_NAME_new_index()
106 name_funcs = sk_NAME_FUNCS_value(name_funcs_stack, ret); in OBJ_NAME_new_index()
116 return ret; in OBJ_NAME_new_index()
121 int ret; in obj_name_cmp() local
123 ret = a->type - b->type; in obj_name_cmp()
124 if (ret == 0) { in obj_name_cmp()
127 ret = sk_NAME_FUNCS_value(name_funcs_stack, in obj_name_cmp()
130 ret = OPENSSL_strcasecmp(a->name, b->name); in obj_name_cmp()
132 return ret; in obj_name_cmp()
137 unsigned long ret; in obj_name_hash() local
141 ret = in obj_name_hash()
145 ret = ossl_lh_strcasehash(a->name); in obj_name_hash()
147 ret ^= a->type; in obj_name_hash()
148 return ret; in obj_name_hash()
153 OBJ_NAME on, *ret; in OBJ_NAME_get() local
171 ret = lh_OBJ_NAME_retrieve(names_lh, &on); in OBJ_NAME_get()
172 if (ret == NULL) in OBJ_NAME_get()
174 if ((ret->alias) && !alias) { in OBJ_NAME_get()
177 on.name = ret->data; in OBJ_NAME_get()
179 value = ret->data; in OBJ_NAME_get()
190 OBJ_NAME *onp, *ret; in OBJ_NAME_add() local
213 ret = lh_OBJ_NAME_insert(names_lh, onp); in OBJ_NAME_add()
214 if (ret != NULL) { in OBJ_NAME_add()
217 && (sk_NAME_FUNCS_num(name_funcs_stack) > ret->type)) { in OBJ_NAME_add()
223 ret->type)->free_func(ret->name, ret->type, in OBJ_NAME_add()
224 ret->data); in OBJ_NAME_add()
226 OPENSSL_free(ret); in OBJ_NAME_add()
244 OBJ_NAME on, *ret; in OBJ_NAME_remove() local
256 ret = lh_OBJ_NAME_delete(names_lh, &on); in OBJ_NAME_remove()
257 if (ret != NULL) { in OBJ_NAME_remove()
260 && (sk_NAME_FUNCS_num(name_funcs_stack) > ret->type)) { in OBJ_NAME_remove()
266 ret->type)->free_func(ret->name, ret->type, in OBJ_NAME_remove()
267 ret->data); in OBJ_NAME_remove()
269 OPENSSL_free(ret); in OBJ_NAME_remove()