Make the data field for get_record() const
authorMatt Caswell <matt@openssl.org>
Thu, 23 Feb 2023 17:02:54 +0000 (17:02 +0000)
committerPauli <pauli@openssl.org>
Wed, 12 Apr 2023 01:02:01 +0000 (11:02 +1000)
commit2eb91b0ec325924ae4b7dc596617a6fff71d7ae6
tree1df51675b32dec5afeda3664035a2f4d8647570d
parent7257188b7054cf8acfc4837e38486459e0930718
Make the data field for get_record() const

Improves consistency with the QUIC rstream implementation - and improves
the abstraction between the TLS implementation and the abstract record
layer. We should not expect that the TLS implementation should be able to
change the underlying buffer. Future record layers may not expect that.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20404)
include/internal/recordmethod.h
ssl/quic/quic_tls.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls_common.c
ssl/record/rec_layer_d1.c
ssl/record/rec_layer_s3.c
ssl/record/record.h
ssl/ssl_local.h
ssl/statem/statem_dtls.c
test/sslapitest.c