Lines Matching refs:curr
622 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_tail() argument
625 if (curr == *tail) in ll_append_tail()
627 if (curr == *head) in ll_append_tail()
628 *head = curr->next; in ll_append_tail()
629 if (curr->prev != NULL) in ll_append_tail()
630 curr->prev->next = curr->next; in ll_append_tail()
631 if (curr->next != NULL) in ll_append_tail()
632 curr->next->prev = curr->prev; in ll_append_tail()
633 (*tail)->next = curr; in ll_append_tail()
634 curr->prev = *tail; in ll_append_tail()
635 curr->next = NULL; in ll_append_tail()
636 *tail = curr; in ll_append_tail()
639 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
642 if (curr == *head) in ll_append_head()
644 if (curr == *tail) in ll_append_head()
645 *tail = curr->prev; in ll_append_head()
646 if (curr->next != NULL) in ll_append_head()
647 curr->next->prev = curr->prev; in ll_append_head()
648 if (curr->prev != NULL) in ll_append_head()
649 curr->prev->next = curr->next; in ll_append_head()
650 (*head)->prev = curr; in ll_append_head()
651 curr->next = *head; in ll_append_head()
652 curr->prev = NULL; in ll_append_head()
653 *head = curr; in ll_append_head()
795 CIPHER_ORDER *head, *tail, *curr, *next, *last; in ssl_cipher_apply_rule() local
822 curr = NULL; in ssl_cipher_apply_rule()
824 if (curr == last) in ssl_cipher_apply_rule()
827 curr = next; in ssl_cipher_apply_rule()
829 if (curr == NULL) in ssl_cipher_apply_rule()
832 next = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
834 cp = curr->cipher; in ssl_cipher_apply_rule()
882 if (!curr->active) { in ssl_cipher_apply_rule()
883 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
884 curr->active = 1; in ssl_cipher_apply_rule()
890 if (curr->active) { in ssl_cipher_apply_rule()
891 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
895 if (curr->active) { in ssl_cipher_apply_rule()
901 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
902 curr->active = 0; in ssl_cipher_apply_rule()
905 if (curr->active) in ssl_cipher_apply_rule()
906 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
909 if (head == curr) in ssl_cipher_apply_rule()
910 head = curr->next; in ssl_cipher_apply_rule()
912 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
913 if (tail == curr) in ssl_cipher_apply_rule()
914 tail = curr->prev; in ssl_cipher_apply_rule()
915 curr->active = 0; in ssl_cipher_apply_rule()
916 if (curr->next != NULL) in ssl_cipher_apply_rule()
917 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
918 if (curr->prev != NULL) in ssl_cipher_apply_rule()
919 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
920 curr->next = NULL; in ssl_cipher_apply_rule()
921 curr->prev = NULL; in ssl_cipher_apply_rule()
936 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
944 curr = *head_p; in ssl_cipher_strength_sort()
945 while (curr != NULL) { in ssl_cipher_strength_sort()
946 if (curr->active && (curr->cipher->strength_bits > max_strength_bits)) in ssl_cipher_strength_sort()
947 max_strength_bits = curr->cipher->strength_bits; in ssl_cipher_strength_sort()
948 curr = curr->next; in ssl_cipher_strength_sort()
958 curr = *head_p; in ssl_cipher_strength_sort()
959 while (curr != NULL) { in ssl_cipher_strength_sort()
960 if (curr->active) in ssl_cipher_strength_sort()
961 number_uses[curr->cipher->strength_bits]++; in ssl_cipher_strength_sort()
962 curr = curr->next; in ssl_cipher_strength_sort()
1447 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF() local
1659 for (curr = head; curr != NULL; curr = curr->next) { in STACK_OF()
1660 if (curr->active) { in STACK_OF()
1661 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in STACK_OF()
1668 BIO_printf(trc_out, "<%s>\n", curr->cipher->name); in STACK_OF()