summaryrefslogtreecommitdiff
path: root/test/sslapitest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-02-23 17:02:54 +0000
committerPauli <pauli@openssl.org>2023-04-12 11:02:01 +1000
commit2eb91b0ec325924ae4b7dc596617a6fff71d7ae6 (patch)
tree1df51675b32dec5afeda3664035a2f4d8647570d /test/sslapitest.c
parent7257188b7054cf8acfc4837e38486459e0930718 (diff)
downloadopenssl-new-2eb91b0ec325924ae4b7dc596617a6fff71d7ae6.tar.gz
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 'test/sslapitest.c')
-rw-r--r--test/sslapitest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c
index 27d95c73df..8089a8c0dc 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -1708,7 +1708,7 @@ static int execute_cleanse_plaintext(const SSL_METHOD *smeth,
SSL_CTX *cctx = NULL, *sctx = NULL;
SSL *clientssl = NULL, *serverssl = NULL;
int testresult = 0;
- void *zbuf;
+ const unsigned char *zbuf;
SSL_CONNECTION *serversc;
TLS_RECORD *rr;