Lines Matching refs:curr
609 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_tail() argument
612 if (curr == *tail) in ll_append_tail()
614 if (curr == *head) in ll_append_tail()
615 *head = curr->next; in ll_append_tail()
616 if (curr->prev != NULL) in ll_append_tail()
617 curr->prev->next = curr->next; in ll_append_tail()
618 if (curr->next != NULL) in ll_append_tail()
619 curr->next->prev = curr->prev; in ll_append_tail()
620 (*tail)->next = curr; in ll_append_tail()
621 curr->prev = *tail; in ll_append_tail()
622 curr->next = NULL; in ll_append_tail()
623 *tail = curr; in ll_append_tail()
626 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
629 if (curr == *head) in ll_append_head()
631 if (curr == *tail) in ll_append_head()
632 *tail = curr->prev; in ll_append_head()
633 if (curr->next != NULL) in ll_append_head()
634 curr->next->prev = curr->prev; in ll_append_head()
635 if (curr->prev != NULL) in ll_append_head()
636 curr->prev->next = curr->next; in ll_append_head()
637 (*head)->prev = curr; in ll_append_head()
638 curr->next = *head; in ll_append_head()
639 curr->prev = NULL; in ll_append_head()
640 *head = curr; in ll_append_head()
782 CIPHER_ORDER *head, *tail, *curr, *next, *last; in ssl_cipher_apply_rule() local
809 curr = NULL; in ssl_cipher_apply_rule()
811 if (curr == last) in ssl_cipher_apply_rule()
814 curr = next; in ssl_cipher_apply_rule()
816 if (curr == NULL) in ssl_cipher_apply_rule()
819 next = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
821 cp = curr->cipher; in ssl_cipher_apply_rule()
869 if (!curr->active) { in ssl_cipher_apply_rule()
870 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
871 curr->active = 1; in ssl_cipher_apply_rule()
877 if (curr->active) { in ssl_cipher_apply_rule()
878 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
882 if (curr->active) { in ssl_cipher_apply_rule()
888 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
889 curr->active = 0; in ssl_cipher_apply_rule()
892 if (curr->active) in ssl_cipher_apply_rule()
893 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
896 if (head == curr) in ssl_cipher_apply_rule()
897 head = curr->next; in ssl_cipher_apply_rule()
899 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
900 if (tail == curr) in ssl_cipher_apply_rule()
901 tail = curr->prev; in ssl_cipher_apply_rule()
902 curr->active = 0; in ssl_cipher_apply_rule()
903 if (curr->next != NULL) in ssl_cipher_apply_rule()
904 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
905 if (curr->prev != NULL) in ssl_cipher_apply_rule()
906 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
907 curr->next = NULL; in ssl_cipher_apply_rule()
908 curr->prev = NULL; in ssl_cipher_apply_rule()
923 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
931 curr = *head_p; in ssl_cipher_strength_sort()
932 while (curr != NULL) { in ssl_cipher_strength_sort()
933 if (curr->active && (curr->cipher->strength_bits > max_strength_bits)) in ssl_cipher_strength_sort()
934 max_strength_bits = curr->cipher->strength_bits; in ssl_cipher_strength_sort()
935 curr = curr->next; in ssl_cipher_strength_sort()
945 curr = *head_p; in ssl_cipher_strength_sort()
946 while (curr != NULL) { in ssl_cipher_strength_sort()
947 if (curr->active) in ssl_cipher_strength_sort()
948 number_uses[curr->cipher->strength_bits]++; in ssl_cipher_strength_sort()
949 curr = curr->next; in ssl_cipher_strength_sort()
1434 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF() local
1646 for (curr = head; curr != NULL; curr = curr->next) { in STACK_OF()
1647 if (curr->active) { in STACK_OF()
1648 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in STACK_OF()
1655 BIO_printf(trc_out, "<%s>\n", curr->cipher->name); in STACK_OF()