Lines Matching refs:rr
166 SSL3_RECORD *rr = &ssl->s3->rrec; in ssl3_get_record() local
167 rr->type = type; in ssl3_get_record()
168 rr->length = (uint16_t)CBS_len(&body); in ssl3_get_record()
169 rr->data = (uint8_t *)CBS_data(&body); in ssl3_get_record()
304 SSL3_RECORD *rr = &ssl->s3->rrec; in consume_record() local
310 if (len > (int)rr->length) { in consume_record()
311 len = (int)rr->length; in consume_record()
314 OPENSSL_memcpy(out, rr->data, len); in consume_record()
316 rr->length -= len; in consume_record()
317 rr->data += len; in consume_record()
318 if (rr->length == 0) { in consume_record()
333 SSL3_RECORD *rr = &ssl->s3->rrec; in ssl3_read_app_data() local
341 if (rr->length == 0 && !has_hs_data) { in ssl3_read_app_data()
348 if (has_hs_data || rr->type == SSL3_RT_HANDSHAKE) { in ssl3_read_app_data()
376 if (rr->type == SSL3_RT_ALERT && in ssl3_read_app_data()
377 rr->length == 2 && in ssl3_read_app_data()
378 rr->data[0] == SSL3_AL_WARNING && in ssl3_read_app_data()
379 rr->data[1] == TLS1_AD_END_OF_EARLY_DATA && in ssl3_read_app_data()
385 rr->length = 0; in ssl3_read_app_data()
393 if (rr->type != SSL3_RT_APPLICATION_DATA) { in ssl3_read_app_data()
399 if (rr->length != 0) { in ssl3_read_app_data()
408 SSL3_RECORD *rr = &ssl->s3->rrec; in ssl3_read_change_cipher_spec() local
410 if (rr->length == 0) { in ssl3_read_change_cipher_spec()
417 if (rr->type != SSL3_RT_CHANGE_CIPHER_SPEC) { in ssl3_read_change_cipher_spec()
423 if (rr->length != 1 || rr->data[0] != SSL3_MT_CCS) { in ssl3_read_change_cipher_spec()
429 ssl_do_msg_callback(ssl, 0 /* read */, SSL3_RT_CHANGE_CIPHER_SPEC, rr->data, in ssl3_read_change_cipher_spec()
430 rr->length); in ssl3_read_change_cipher_spec()
432 rr->length = 0; in ssl3_read_change_cipher_spec()
445 SSL3_RECORD *rr = &ssl->s3->rrec; in ssl3_read_handshake_bytes() local
449 if (rr->length == 0) { in ssl3_read_handshake_bytes()
456 if (rr->type != SSL3_RT_HANDSHAKE) { in ssl3_read_handshake_bytes()
462 if (rr->length != 0) { in ssl3_read_handshake_bytes()