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()
211 SSL3_RECORD *rr = &ssl->s3->rrec; in dtls1_read_app_data() local
214 if (rr->length == 0) { in dtls1_read_app_data()
221 if (rr->type == SSL3_RT_HANDSHAKE) { in dtls1_read_app_data()
227 CBS_init(&cbs, rr->data, rr->length); in dtls1_read_app_data()
247 rr->length = 0; in dtls1_read_app_data()
255 if (rr->type != SSL3_RT_APPLICATION_DATA) { in dtls1_read_app_data()
262 if (rr->length == 0) { in dtls1_read_app_data()
270 if ((unsigned)len > rr->length) { in dtls1_read_app_data()
271 len = rr->length; in dtls1_read_app_data()
274 OPENSSL_memcpy(buf, rr->data, len); in dtls1_read_app_data()
278 rr->length -= len; in dtls1_read_app_data()
279 rr->data += len; in dtls1_read_app_data()
280 if (rr->length == 0) { in dtls1_read_app_data()
290 SSL3_RECORD *rr = &ssl->s3->rrec; in dtls1_read_change_cipher_spec() local
293 if (rr->length == 0) { in dtls1_read_change_cipher_spec()
302 if (rr->type == SSL3_RT_HANDSHAKE) { in dtls1_read_change_cipher_spec()
303 rr->length = 0; in dtls1_read_change_cipher_spec()
309 if (rr->type != SSL3_RT_CHANGE_CIPHER_SPEC) { in dtls1_read_change_cipher_spec()
315 if (rr->length != 1 || rr->data[0] != SSL3_MT_CCS) { in dtls1_read_change_cipher_spec()
321 ssl_do_msg_callback(ssl, 0 /* read */, SSL3_RT_CHANGE_CIPHER_SPEC, rr->data, in dtls1_read_change_cipher_spec()
322 rr->length); in dtls1_read_change_cipher_spec()
324 rr->length = 0; in dtls1_read_change_cipher_spec()