Lines Matching refs:rr
180 SSL3_RECORD *rr = &ssl->s3->rrec; in dtls1_get_record() local
181 rr->type = type; in dtls1_get_record()
182 rr->length = (uint16_t)CBS_len(&body); in dtls1_get_record()
183 rr->data = (uint8_t *)CBS_data(&body); in dtls1_get_record()
210 SSL3_RECORD *rr = &ssl->s3->rrec; in dtls1_read_app_data() local
213 if (rr->length == 0) { in dtls1_read_app_data()
220 if (rr->type == SSL3_RT_HANDSHAKE) { in dtls1_read_app_data()
226 CBS_init(&cbs, rr->data, rr->length); in dtls1_read_app_data()
246 rr->length = 0; in dtls1_read_app_data()
254 if (rr->type != SSL3_RT_APPLICATION_DATA) { in dtls1_read_app_data()
261 if (rr->length == 0) { in dtls1_read_app_data()
269 if ((unsigned)len > rr->length) { in dtls1_read_app_data()
270 len = rr->length; in dtls1_read_app_data()
273 OPENSSL_memcpy(buf, rr->data, len); in dtls1_read_app_data()
277 rr->length -= len; in dtls1_read_app_data()
278 rr->data += len; in dtls1_read_app_data()
279 if (rr->length == 0) { in dtls1_read_app_data()
289 SSL3_RECORD *rr = &ssl->s3->rrec; in dtls1_read_change_cipher_spec() local
292 if (rr->length == 0) { in dtls1_read_change_cipher_spec()
301 if (rr->type == SSL3_RT_HANDSHAKE) { in dtls1_read_change_cipher_spec()
302 rr->length = 0; in dtls1_read_change_cipher_spec()
308 if (rr->type != SSL3_RT_CHANGE_CIPHER_SPEC) { in dtls1_read_change_cipher_spec()
314 if (rr->length != 1 || rr->data[0] != SSL3_MT_CCS) { in dtls1_read_change_cipher_spec()
320 ssl_do_msg_callback(ssl, 0 /* read */, SSL3_RT_CHANGE_CIPHER_SPEC, rr->data, in dtls1_read_change_cipher_spec()
321 rr->length); in dtls1_read_change_cipher_spec()
323 rr->length = 0; in dtls1_read_change_cipher_spec()