Lines Matching refs:curr
638 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_tail() argument
641 if (curr == *tail) in ll_append_tail()
643 if (curr == *head) in ll_append_tail()
644 *head = curr->next; in ll_append_tail()
645 if (curr->prev != NULL) in ll_append_tail()
646 curr->prev->next = curr->next; in ll_append_tail()
647 if (curr->next != NULL) in ll_append_tail()
648 curr->next->prev = curr->prev; in ll_append_tail()
649 (*tail)->next = curr; in ll_append_tail()
650 curr->prev = *tail; in ll_append_tail()
651 curr->next = NULL; in ll_append_tail()
652 *tail = curr; in ll_append_tail()
655 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
658 if (curr == *head) in ll_append_head()
660 if (curr == *tail) in ll_append_head()
661 *tail = curr->prev; in ll_append_head()
662 if (curr->next != NULL) in ll_append_head()
663 curr->next->prev = curr->prev; in ll_append_head()
664 if (curr->prev != NULL) in ll_append_head()
665 curr->prev->next = curr->next; in ll_append_head()
666 (*head)->prev = curr; in ll_append_head()
667 curr->next = *head; in ll_append_head()
668 curr->prev = NULL; in ll_append_head()
669 *head = curr; in ll_append_head()
811 CIPHER_ORDER *head, *tail, *curr, *next, *last; in ssl_cipher_apply_rule() local
837 curr = NULL; in ssl_cipher_apply_rule()
839 if (curr == last) in ssl_cipher_apply_rule()
842 curr = next; in ssl_cipher_apply_rule()
844 if (curr == NULL) in ssl_cipher_apply_rule()
847 next = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
849 cp = curr->cipher; in ssl_cipher_apply_rule()
893 if (!curr->active) { in ssl_cipher_apply_rule()
894 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
895 curr->active = 1; in ssl_cipher_apply_rule()
901 if (curr->active) { in ssl_cipher_apply_rule()
902 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
906 if (curr->active) { in ssl_cipher_apply_rule()
912 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
913 curr->active = 0; in ssl_cipher_apply_rule()
916 if (curr->active) in ssl_cipher_apply_rule()
917 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
920 if (head == curr) in ssl_cipher_apply_rule()
921 head = curr->next; in ssl_cipher_apply_rule()
923 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
924 if (tail == curr) in ssl_cipher_apply_rule()
925 tail = curr->prev; in ssl_cipher_apply_rule()
926 curr->active = 0; in ssl_cipher_apply_rule()
927 if (curr->next != NULL) in ssl_cipher_apply_rule()
928 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
929 if (curr->prev != NULL) in ssl_cipher_apply_rule()
930 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
931 curr->next = NULL; in ssl_cipher_apply_rule()
932 curr->prev = NULL; in ssl_cipher_apply_rule()
947 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
955 curr = *head_p; in ssl_cipher_strength_sort()
956 while (curr != NULL) { in ssl_cipher_strength_sort()
957 if (curr->active && (curr->cipher->strength_bits > max_strength_bits)) in ssl_cipher_strength_sort()
958 max_strength_bits = curr->cipher->strength_bits; in ssl_cipher_strength_sort()
959 curr = curr->next; in ssl_cipher_strength_sort()
971 curr = *head_p; in ssl_cipher_strength_sort()
972 while (curr != NULL) { in ssl_cipher_strength_sort()
973 if (curr->active) in ssl_cipher_strength_sort()
974 number_uses[curr->cipher->strength_bits]++; in ssl_cipher_strength_sort()
975 curr = curr->next; in ssl_cipher_strength_sort()
1446 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()