Lines Matching refs:item
577 pitem *item;
582 item = pqueue_peek(s->d1->buffered_messages);
583 if ( item == NULL)
586 frag = (hm_fragment *)item->data;
607 pitem_free(item);
639 pitem *item = NULL;
651 /* Try to find item in queue */
655 item = pqueue_find(s->d1->buffered_messages, seq64be);
657 if (item == NULL)
668 frag = (hm_fragment*) item->data;
671 item = NULL;
679 * retransmit and can be dropped. In this case item != NULL and so frag
717 if (item == NULL)
719 item = pitem_new(seq64be, frag);
720 if (item == NULL)
726 item = pqueue_insert(s->d1->buffered_messages, item);
727 /* pqueue_insert fails iff a duplicate item is inserted.
728 * However, |item| cannot be a duplicate. If it were,
731 OPENSSL_assert(item != NULL);
737 if (frag != NULL && item == NULL) dtls1_hm_fragment_free(frag);
748 pitem *item = NULL;
755 /* Try to find item in queue, to prevent duplicate entries */
759 item = pqueue_find(s->d1->buffered_messages, seq64be);
764 if (item != NULL && frag_len != msg_hdr->msg_len)
765 item = NULL;
773 msg_hdr->seq > s->d1->handshake_read_seq + 10 || item != NULL ||
812 item = pitem_new(seq64be, frag);
813 if ( item == NULL)
816 item = pqueue_insert(s->d1->buffered_messages, item);
817 /* pqueue_insert fails iff a duplicate item is inserted.
818 * However, |item| cannot be a duplicate. If it were,
820 * |frag_len| != |msg_hdr->msg_len| in which case |item| is set
824 OPENSSL_assert(item != NULL);
830 if (frag != NULL && item == NULL) dtls1_hm_fragment_free(frag);
1158 item = pqueue_peek(state->rcvd_records);
1159 if ( item )
1194 pitem *item;
1200 for ( item = pqueue_next(&iter); item != NULL; item = pqueue_next(&iter))
1202 frag = (hm_fragment *)item->data;
1218 pitem *item;
1263 item = pitem_new(seq64be, frag);
1264 if ( item == NULL)
1276 pqueue_insert(s->d1->sent_messages, item);
1286 pitem *item;
1303 item = pqueue_find(s->d1->sent_messages, seq64be);
1304 if ( item == NULL)
1312 frag = (hm_fragment *)item->data;
1376 pitem *item;
1378 for(item = pqueue_pop(s->d1->sent_messages);
1379 item != NULL; item = pqueue_pop(s->d1->sent_messages))
1381 dtls1_hm_fragment_free((hm_fragment *)item->data);
1382 pitem_free(item);