Lines Matching refs:rdata
76 TLS_RECORD *rdata; in dtls_buffer_record() local
88 rdata = OPENSSL_malloc(sizeof(*rdata)); in dtls_buffer_record()
89 item = pitem_new(rec->seq_num, rdata); in dtls_buffer_record()
90 if (rdata == NULL || item == NULL) { in dtls_buffer_record()
91 OPENSSL_free(rdata); in dtls_buffer_record()
97 *rdata = *rec; in dtls_buffer_record()
103 rdata->data = rdata->allocdata = OPENSSL_memdup(rec->data, rec->length); in dtls_buffer_record()
104 if (rdata->data == NULL) { in dtls_buffer_record()
105 OPENSSL_free(rdata); in dtls_buffer_record()
114 rdata->rechandle = NULL; in dtls_buffer_record()
116 item->data = rdata; in dtls_buffer_record()
124 sizeof(rdata->recordinfo), &rdata->recordinfo); in dtls_buffer_record()
130 OPENSSL_free(rdata->allocdata); in dtls_buffer_record()
131 OPENSSL_free(rdata); in dtls_buffer_record()
141 TLS_RECORD *rdata; in dtls_unbuffer_record() local
150 rdata = (TLS_RECORD *)item->data; in dtls_unbuffer_record()
152 s->rlayer.tlsrecs[0] = *rdata; in dtls_unbuffer_record()
160 sizeof(rdata->recordinfo), &rdata->recordinfo); in dtls_unbuffer_record()