Lines Matching refs:item
588 pitem *item;
593 item = pqueue_peek(s->d1->buffered_messages);
594 if (item == NULL)
597 frag = (hm_fragment *)item->data;
617 pitem_free(item);
650 pitem *item = NULL;
662 /* Try to find item in queue */
666 item = pqueue_find(s->d1->buffered_messages, seq64be);
668 if (item == NULL) {
676 frag = (hm_fragment *)item->data;
678 item = NULL;
686 * be dropped. In this case item != NULL and so frag does not need to be
725 if (item == NULL) {
726 item = pitem_new(seq64be, frag);
727 if (item == NULL) {
732 item = pqueue_insert(s->d1->buffered_messages, item);
734 * pqueue_insert fails iff a duplicate item is inserted. However,
735 * |item| cannot be a duplicate. If it were, |pqueue_find|, above,
739 OPENSSL_assert(item != NULL);
745 if (frag != NULL && item == NULL)
757 pitem *item = NULL;
764 /* Try to find item in queue, to prevent duplicate entries */
768 item = pqueue_find(s->d1->buffered_messages, seq64be);
774 if (item != NULL && frag_len != msg_hdr->msg_len)
775 item = NULL;
783 msg_hdr->seq > s->d1->handshake_read_seq + 10 || item != NULL ||
823 item = pitem_new(seq64be, frag);
824 if (item == NULL)
827 item = pqueue_insert(s->d1->buffered_messages, item);
829 * pqueue_insert fails iff a duplicate item is inserted. However,
830 * |item| cannot be a duplicate. If it were, |pqueue_find|, above,
832 * |msg_hdr->msg_len| in which case |item| is set to NULL and it will
836 OPENSSL_assert(item != NULL);
842 if (frag != NULL && item == NULL)
1052 item = pqueue_peek(state->rcvd_records);
1053 if (item) {
1087 pitem *item;
1093 for (item = pqueue_next(&iter); item != NULL; item = pqueue_next(&iter)) {
1094 frag = (hm_fragment *)item->data;
1110 pitem *item;
1160 item = pitem_new(seq64be, frag);
1161 if (item == NULL) {
1171 pqueue_insert(s->d1->sent_messages, item);
1181 pitem *item;
1198 item = pqueue_find(s->d1->sent_messages, seq64be);
1199 if (item == NULL) {
1206 frag = (hm_fragment *)item->data;
1274 pitem *item;
1276 for (item = pqueue_pop(s->d1->sent_messages);
1277 item != NULL; item = pqueue_pop(s->d1->sent_messages)) {
1278 dtls1_hm_fragment_free((hm_fragment *)item->data);
1279 pitem_free(item);