Lines Matching refs:curr

643 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr,  in ll_append_tail()  argument
646 if (curr == *tail) in ll_append_tail()
648 if (curr == *head) in ll_append_tail()
649 *head = curr->next; in ll_append_tail()
650 if (curr->prev != NULL) in ll_append_tail()
651 curr->prev->next = curr->next; in ll_append_tail()
652 if (curr->next != NULL) in ll_append_tail()
653 curr->next->prev = curr->prev; in ll_append_tail()
654 (*tail)->next = curr; in ll_append_tail()
655 curr->prev = *tail; in ll_append_tail()
656 curr->next = NULL; in ll_append_tail()
657 *tail = curr; in ll_append_tail()
660 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
663 if (curr == *head) in ll_append_head()
665 if (curr == *tail) in ll_append_head()
666 *tail = curr->prev; in ll_append_head()
667 if (curr->next != NULL) in ll_append_head()
668 curr->next->prev = curr->prev; in ll_append_head()
669 if (curr->prev != NULL) in ll_append_head()
670 curr->prev->next = curr->next; in ll_append_head()
671 (*head)->prev = curr; in ll_append_head()
672 curr->next = *head; in ll_append_head()
673 curr->prev = NULL; in ll_append_head()
674 *head = curr; in ll_append_head()
816 CIPHER_ORDER *head, *tail, *curr, *next, *last; in ssl_cipher_apply_rule() local
842 curr = NULL; in ssl_cipher_apply_rule()
844 if (curr == last) in ssl_cipher_apply_rule()
847 curr = next; in ssl_cipher_apply_rule()
849 if (curr == NULL) in ssl_cipher_apply_rule()
852 next = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
854 cp = curr->cipher; in ssl_cipher_apply_rule()
898 if (!curr->active) { in ssl_cipher_apply_rule()
899 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
900 curr->active = 1; in ssl_cipher_apply_rule()
906 if (curr->active) { in ssl_cipher_apply_rule()
907 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
911 if (curr->active) { in ssl_cipher_apply_rule()
917 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
918 curr->active = 0; in ssl_cipher_apply_rule()
921 if (curr->active) in ssl_cipher_apply_rule()
922 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
925 if (head == curr) in ssl_cipher_apply_rule()
926 head = curr->next; in ssl_cipher_apply_rule()
928 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
929 if (tail == curr) in ssl_cipher_apply_rule()
930 tail = curr->prev; in ssl_cipher_apply_rule()
931 curr->active = 0; in ssl_cipher_apply_rule()
932 if (curr->next != NULL) in ssl_cipher_apply_rule()
933 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
934 if (curr->prev != NULL) in ssl_cipher_apply_rule()
935 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
936 curr->next = NULL; in ssl_cipher_apply_rule()
937 curr->prev = NULL; in ssl_cipher_apply_rule()
952 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
960 curr = *head_p; in ssl_cipher_strength_sort()
961 while (curr != NULL) { in ssl_cipher_strength_sort()
962 if (curr->active && (curr->cipher->strength_bits > max_strength_bits)) in ssl_cipher_strength_sort()
963 max_strength_bits = curr->cipher->strength_bits; in ssl_cipher_strength_sort()
964 curr = curr->next; in ssl_cipher_strength_sort()
976 curr = *head_p; in ssl_cipher_strength_sort()
977 while (curr != NULL) { in ssl_cipher_strength_sort()
978 if (curr->active) in ssl_cipher_strength_sort()
979 number_uses[curr->cipher->strength_bits]++; in ssl_cipher_strength_sort()
980 curr = curr->next; in ssl_cipher_strength_sort()
1453 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF() local
1666 for (curr = head; curr != NULL; curr = curr->next) { in STACK_OF()
1667 if (curr->active) { in STACK_OF()
1668 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in STACK_OF()
1675 BIO_printf(trc_out, "<%s>\n", curr->cipher->name); in STACK_OF()