Lines Matching refs:rr
204 TLS_RECORD *rr; in dtls1_read_bytes() local
250 rr = &sc->rlayer.tlsrecs[sc->rlayer.num_recs]; in dtls1_read_bytes()
254 &rr->rechandle, in dtls1_read_bytes()
255 &rr->version, &rr->type, in dtls1_read_bytes()
256 &rr->data, &rr->length, in dtls1_read_bytes()
257 &rr->epoch, rr->seq_num)); in dtls1_read_bytes()
269 rr->off = 0; in dtls1_read_bytes()
274 rr = &sc->rlayer.tlsrecs[sc->rlayer.curr_rec]; in dtls1_read_bytes()
280 if (rr->type != SSL3_RT_ALERT && rr->length != 0) in dtls1_read_bytes()
287 && (rr->type != SSL3_RT_HANDSHAKE)) { in dtls1_read_bytes()
293 if (dtls_buffer_record(sc, rr) < 0) { in dtls1_read_bytes()
297 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
307 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
313 if (type == rr->type in dtls1_read_bytes()
314 || (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC in dtls1_read_bytes()
333 *recvd_type = rr->type; in dtls1_read_bytes()
341 if (rr->length == 0 && !ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
346 if (len > rr->length) in dtls1_read_bytes()
347 n = rr->length; in dtls1_read_bytes()
351 memcpy(buf, &(rr->data[rr->off]), n); in dtls1_read_bytes()
353 if (rr->length == 0 && !ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
356 if (!ssl_release_record(sc, rr, n)) in dtls1_read_bytes()
381 if (rr->type == SSL3_RT_ALERT) { in dtls1_read_bytes()
383 const unsigned char *alert_bytes = rr->data + rr->off; in dtls1_read_bytes()
386 if (!PACKET_buf_init(&alert, alert_bytes, rr->length) in dtls1_read_bytes()
410 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
446 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
461 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
466 if (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC) { in dtls1_read_bytes()
471 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
479 if (rr->type == SSL3_RT_HANDSHAKE && !ossl_statem_get_in_handshake(sc)) { in dtls1_read_bytes()
486 if (rr->epoch != sc->rlayer.d->r_epoch in dtls1_read_bytes()
487 || rr->length < DTLS1_HM_HEADER_LENGTH) { in dtls1_read_bytes()
488 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
493 dtls1_get_message_header(rr->data, &msg_hdr); in dtls1_read_bytes()
510 if (!ssl_release_record(sc, rr, 0)) in dtls1_read_bytes()
568 switch (rr->type) { in dtls1_read_bytes()