Lines Matching refs:d1
94 DTLS1_STATE *d1; in IMPLEMENT_dtls1_meth_func() local
97 if ((d1=OPENSSL_malloc(sizeof *d1)) == NULL) return (0); in IMPLEMENT_dtls1_meth_func()
98 memset(d1,0, sizeof *d1); in IMPLEMENT_dtls1_meth_func()
102 d1->bitmap.length=64; in IMPLEMENT_dtls1_meth_func()
104 d1->bitmap.length=sizeof(d1->bitmap.map) * 8; in IMPLEMENT_dtls1_meth_func()
106 pq_64bit_init(&(d1->bitmap.map)); in IMPLEMENT_dtls1_meth_func()
107 pq_64bit_init(&(d1->bitmap.max_seq_num)); in IMPLEMENT_dtls1_meth_func()
109 pq_64bit_init(&(d1->next_bitmap.map)); in IMPLEMENT_dtls1_meth_func()
110 pq_64bit_init(&(d1->next_bitmap.max_seq_num)); in IMPLEMENT_dtls1_meth_func()
112 d1->unprocessed_rcds.q=pqueue_new(); in IMPLEMENT_dtls1_meth_func()
113 d1->processed_rcds.q=pqueue_new(); in IMPLEMENT_dtls1_meth_func()
114 d1->buffered_messages = pqueue_new(); in IMPLEMENT_dtls1_meth_func()
115 d1->sent_messages=pqueue_new(); in IMPLEMENT_dtls1_meth_func()
119 d1->cookie_len = sizeof(s->d1->cookie); in IMPLEMENT_dtls1_meth_func()
122 if( ! d1->unprocessed_rcds.q || ! d1->processed_rcds.q in IMPLEMENT_dtls1_meth_func()
123 || ! d1->buffered_messages || ! d1->sent_messages) in IMPLEMENT_dtls1_meth_func()
125 if ( d1->unprocessed_rcds.q) pqueue_free(d1->unprocessed_rcds.q); in IMPLEMENT_dtls1_meth_func()
126 if ( d1->processed_rcds.q) pqueue_free(d1->processed_rcds.q); in IMPLEMENT_dtls1_meth_func()
127 if ( d1->buffered_messages) pqueue_free(d1->buffered_messages); in IMPLEMENT_dtls1_meth_func()
128 if ( d1->sent_messages) pqueue_free(d1->sent_messages); in IMPLEMENT_dtls1_meth_func()
129 OPENSSL_free(d1); in IMPLEMENT_dtls1_meth_func()
133 s->d1=d1; in IMPLEMENT_dtls1_meth_func()
145 while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) in dtls1_free()
150 pqueue_free(s->d1->unprocessed_rcds.q); in dtls1_free()
152 while( (item = pqueue_pop(s->d1->processed_rcds.q)) != NULL) in dtls1_free()
157 pqueue_free(s->d1->processed_rcds.q); in dtls1_free()
159 while( (item = pqueue_pop(s->d1->buffered_messages)) != NULL) in dtls1_free()
166 pqueue_free(s->d1->buffered_messages); in dtls1_free()
168 while ( (item = pqueue_pop(s->d1->sent_messages)) != NULL) in dtls1_free()
175 pqueue_free(s->d1->sent_messages); in dtls1_free()
177 pq_64bit_free(&(s->d1->bitmap.map)); in dtls1_free()
178 pq_64bit_free(&(s->d1->bitmap.max_seq_num)); in dtls1_free()
180 pq_64bit_free(&(s->d1->next_bitmap.map)); in dtls1_free()
181 pq_64bit_free(&(s->d1->next_bitmap.max_seq_num)); in dtls1_free()
183 OPENSSL_free(s->d1); in dtls1_free()