diff options
author | Matt Caswell <matt@openssl.org> | 2023-02-23 17:02:54 +0000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-04-12 11:02:01 +1000 |
commit | 2eb91b0ec325924ae4b7dc596617a6fff71d7ae6 (patch) | |
tree | 1df51675b32dec5afeda3664035a2f4d8647570d /include | |
parent | 7257188b7054cf8acfc4837e38486459e0930718 (diff) |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/recordmethod.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/recordmethod.h b/include/internal/recordmethod.h index fda3549590..30d2208568 100644 --- a/include/internal/recordmethod.h +++ b/include/internal/recordmethod.h @@ -231,7 +231,7 @@ struct ossl_record_method_st { * multiple records in one go and buffer them. */ int (*read_record)(OSSL_RECORD_LAYER *rl, void **rechandle, int *rversion, - int *type, unsigned char **data, size_t *datalen, + int *type, const unsigned char **data, size_t *datalen, uint16_t *epoch, unsigned char *seq_num); /* * Release a buffer associated with a record previously read with |