Lines Matching refs:iterator
41 ENGINE *iterator = engine_list_head; in engine_list_cleanup() local
43 while (iterator != NULL) { in engine_list_cleanup()
44 ENGINE_remove(iterator); in engine_list_cleanup()
45 iterator = engine_list_head; in engine_list_cleanup()
57 ENGINE *iterator = NULL; in engine_list_add() local
63 iterator = engine_list_head; in engine_list_add()
64 while (iterator && !conflict) { in engine_list_add()
65 conflict = (strcmp(iterator->id, e->id) == 0); in engine_list_add()
66 iterator = iterator->next; in engine_list_add()
106 ENGINE *iterator; in engine_list_remove() local
113 iterator = engine_list_head; in engine_list_remove()
114 while (iterator && (iterator != e)) in engine_list_remove()
115 iterator = iterator->next; in engine_list_remove()
116 if (iterator == NULL) { in engine_list_remove()
140 ENGINE *iterator = NULL; in engine_add_dynamic_id() local
152 iterator = engine_dyn_list_head; in engine_add_dynamic_id()
153 while (iterator != NULL) { in engine_add_dynamic_id()
154 if (iterator->dynamic_id == dynamic_id) in engine_add_dynamic_id()
156 iterator = iterator->next; in engine_add_dynamic_id()
366 ENGINE *iterator; in ENGINE_by_id() local
378 iterator = engine_list_head; in ENGINE_by_id()
379 while (iterator && (strcmp(id, iterator->id) != 0)) in ENGINE_by_id()
380 iterator = iterator->next; in ENGINE_by_id()
381 if (iterator != NULL) { in ENGINE_by_id()
387 if (iterator->flags & ENGINE_FLAGS_BY_ID_COPY) { in ENGINE_by_id()
390 iterator = NULL; in ENGINE_by_id()
392 engine_cpy(cp, iterator); in ENGINE_by_id()
393 iterator = cp; in ENGINE_by_id()
396 iterator->struct_ref++; in ENGINE_by_id()
397 engine_ref_debug(iterator, 0, 1); in ENGINE_by_id()
401 if (iterator != NULL) in ENGINE_by_id()
402 return iterator; in ENGINE_by_id()
409 iterator = ENGINE_by_id("dynamic"); in ENGINE_by_id()
410 if (!iterator || !ENGINE_ctrl_cmd_string(iterator, "ID", id, 0) || in ENGINE_by_id()
411 !ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0) || in ENGINE_by_id()
412 !ENGINE_ctrl_cmd_string(iterator, "DIR_ADD", in ENGINE_by_id()
414 !ENGINE_ctrl_cmd_string(iterator, "LIST_ADD", "1", 0) || in ENGINE_by_id()
415 !ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0)) in ENGINE_by_id()
417 return iterator; in ENGINE_by_id()
420 ENGINE_free(iterator); in ENGINE_by_id()