• Home
  • Raw
  • Download

Lines Matching refs:curr

596 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr,  in ll_append_tail()  argument
599 if (curr == *tail) return; in ll_append_tail()
600 if (curr == *head) in ll_append_tail()
601 *head=curr->next; in ll_append_tail()
602 if (curr->prev != NULL) in ll_append_tail()
603 curr->prev->next=curr->next; in ll_append_tail()
604 if (curr->next != NULL) in ll_append_tail()
605 curr->next->prev=curr->prev; in ll_append_tail()
606 (*tail)->next=curr; in ll_append_tail()
607 curr->prev= *tail; in ll_append_tail()
608 curr->next=NULL; in ll_append_tail()
609 *tail=curr; in ll_append_tail()
612 static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_head() argument
615 if (curr == *head) return; in ll_append_head()
616 if (curr == *tail) in ll_append_head()
617 *tail=curr->prev; in ll_append_head()
618 if (curr->next != NULL) in ll_append_head()
619 curr->next->prev=curr->prev; in ll_append_head()
620 if (curr->prev != NULL) in ll_append_head()
621 curr->prev->next=curr->next; in ll_append_head()
622 (*head)->prev=curr; in ll_append_head()
623 curr->next= *head; in ll_append_head()
624 curr->prev=NULL; in ll_append_head()
625 *head=curr; in ll_append_head()
850 CIPHER_ORDER *head, *tail, *curr, *curr2, *last; in ssl_cipher_apply_rule() local
867 curr = tail; in ssl_cipher_apply_rule()
872 curr = head; in ssl_cipher_apply_rule()
876 curr2 = curr; in ssl_cipher_apply_rule()
879 if ((curr == NULL) || (curr == last)) break; in ssl_cipher_apply_rule()
880 curr = curr2; in ssl_cipher_apply_rule()
881 curr2 = reverse ? curr->prev : curr->next; in ssl_cipher_apply_rule()
883 cp = curr->cipher; in ssl_cipher_apply_rule()
924 if (!curr->active) in ssl_cipher_apply_rule()
926 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
927 curr->active = 1; in ssl_cipher_apply_rule()
934 if (curr->active) in ssl_cipher_apply_rule()
936 ll_append_tail(&head, curr, &tail); in ssl_cipher_apply_rule()
942 if (curr->active) in ssl_cipher_apply_rule()
947 ll_append_head(&head, curr, &tail); in ssl_cipher_apply_rule()
948 curr->active = 0; in ssl_cipher_apply_rule()
954 if (head == curr) in ssl_cipher_apply_rule()
955 head = curr->next; in ssl_cipher_apply_rule()
957 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
958 if (tail == curr) in ssl_cipher_apply_rule()
959 tail = curr->prev; in ssl_cipher_apply_rule()
960 curr->active = 0; in ssl_cipher_apply_rule()
961 if (curr->next != NULL) in ssl_cipher_apply_rule()
962 curr->next->prev = curr->prev; in ssl_cipher_apply_rule()
963 if (curr->prev != NULL) in ssl_cipher_apply_rule()
964 curr->prev->next = curr->next; in ssl_cipher_apply_rule()
965 curr->next = NULL; in ssl_cipher_apply_rule()
966 curr->prev = NULL; in ssl_cipher_apply_rule()
978 CIPHER_ORDER *curr; in ssl_cipher_strength_sort() local
986 curr = *head_p; in ssl_cipher_strength_sort()
987 while (curr != NULL) in ssl_cipher_strength_sort()
989 if (curr->active && in ssl_cipher_strength_sort()
990 (curr->cipher->strength_bits > max_strength_bits)) in ssl_cipher_strength_sort()
991 max_strength_bits = curr->cipher->strength_bits; in ssl_cipher_strength_sort()
992 curr = curr->next; in ssl_cipher_strength_sort()
1006 curr = *head_p; in ssl_cipher_strength_sort()
1007 while (curr != NULL) in ssl_cipher_strength_sort()
1009 if (curr->active) in ssl_cipher_strength_sort()
1010 number_uses[curr->cipher->strength_bits]++; in ssl_cipher_strength_sort()
1011 curr = curr->next; in ssl_cipher_strength_sort()
1285 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF() local
1424 for (curr = head; curr != NULL; curr = curr->next) in STACK_OF()
1426 if (curr->active) in STACK_OF()
1428 sk_SSL_CIPHER_push(cipherstack, curr->cipher); in STACK_OF()
1430 printf("<%s>\n",curr->cipher->name); in STACK_OF()