Lines Matching refs:curr
908 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_tail() argument
910 if (curr == *tail) { in ll_append_tail()
913 if (curr == *head) { in ll_append_tail()
914 *head = curr->next; in ll_append_tail()
916 if (curr->prev != NULL) { in ll_append_tail()
917 curr->prev->next = curr->next; in ll_append_tail()
919 if (curr->next != NULL) { in ll_append_tail()
920 curr->next->prev = curr->prev; in ll_append_tail()
922 (*tail)->next = curr; in ll_append_tail()
923 curr->prev = *tail; in ll_append_tail()
924 curr->next = NULL; in ll_append_tail()
925 *tail = curr; in ll_append_tail()
928 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
930 if (curr == *head) { in ll_append_head()
933 if (curr == *tail) { in ll_append_head()
934 *tail = curr->prev; in ll_append_head()
936 if (curr->next != NULL) { in ll_append_head()
937 curr->next->prev = curr->prev; in ll_append_head()
939 if (curr->prev != NULL) { in ll_append_head()
940 curr->prev->next = curr->next; in ll_append_head()
942 (*head)->prev = curr; in ll_append_head()
943 curr->next = *head; in ll_append_head()
944 curr->prev = NULL; in ll_append_head()
945 *head = curr; in ll_append_head()
1004 CIPHER_ORDER *head, *tail, *curr, *next, *last; in ssl_cipher_apply_rule() local
1030 curr = NULL; in ssl_cipher_apply_rule()
1032 if (curr == last) { in ssl_cipher_apply_rule()
1036 curr = next; in ssl_cipher_apply_rule()
1037 if (curr == NULL) { in ssl_cipher_apply_rule()
1041 next = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
1042 cp = curr->cipher; in ssl_cipher_apply_rule()
1066 if (!curr->active) { in ssl_cipher_apply_rule()
1067 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
1068 curr->active = 1; in ssl_cipher_apply_rule()
1069 curr->in_group = in_group; in ssl_cipher_apply_rule()
1076 if (curr->active) { in ssl_cipher_apply_rule()
1077 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
1078 curr->in_group = 0; in ssl_cipher_apply_rule()
1082 if (curr->active) { in ssl_cipher_apply_rule()
1086 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
1087 curr->active = 0; in ssl_cipher_apply_rule()
1088 curr->in_group = 0; in ssl_cipher_apply_rule()
1092 if (head == curr) { in ssl_cipher_apply_rule()
1093 head = curr->next; in ssl_cipher_apply_rule()
1095 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
1098 if (tail == curr) { in ssl_cipher_apply_rule()
1099 tail = curr->prev; in ssl_cipher_apply_rule()
1101 curr->active = 0; in ssl_cipher_apply_rule()
1102 if (curr->next != NULL) { in ssl_cipher_apply_rule()
1103 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
1105 if (curr->prev != NULL) { in ssl_cipher_apply_rule()
1106 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
1108 curr->next = NULL; in ssl_cipher_apply_rule()
1109 curr->prev = NULL; in ssl_cipher_apply_rule()
1120 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
1126 curr = *head_p; in ssl_cipher_strength_sort()
1127 while (curr != NULL) { in ssl_cipher_strength_sort()
1128 if (curr->active && in ssl_cipher_strength_sort()
1129 SSL_CIPHER_get_bits(curr->cipher, NULL) > max_strength_bits) { in ssl_cipher_strength_sort()
1130 max_strength_bits = SSL_CIPHER_get_bits(curr->cipher, NULL); in ssl_cipher_strength_sort()
1132 curr = curr->next; in ssl_cipher_strength_sort()
1143 curr = *head_p; in ssl_cipher_strength_sort()
1144 while (curr != NULL) { in ssl_cipher_strength_sort()
1145 if (curr->active) { in ssl_cipher_strength_sort()
1146 number_uses[SSL_CIPHER_get_bits(curr->cipher, NULL)]++; in ssl_cipher_strength_sort()
1148 curr = curr->next; in ssl_cipher_strength_sort()
1382 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF() local
1499 for (curr = head; curr != NULL; curr = curr->next) { in STACK_OF()
1500 if (curr->active) { in STACK_OF()
1501 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in STACK_OF()
1504 in_group_flags[num_in_group_flags++] = curr->in_group; in STACK_OF()