summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-02-01 15:26:18 +0100
committerEmilia Kasper <emilia@openssl.org>2016-02-01 16:21:57 +0100
commitb69817449315f3818a8472468b3328ea755819db (patch)
treebb2abb48ce582d6d9b8fdc6e216ee0028deff817 /test
parent0c787647ded59a81311d905024bc93df5d3a061c (diff)
constify PACKET
PACKET contents should be read-only. To achieve this, also - constify two user callbacks - constify BUF_reverse. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/packettest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/packettest.c b/test/packettest.c
index bec780f5bf..0555c7be74 100644
--- a/test/packettest.c
+++ b/test/packettest.c
@@ -197,7 +197,7 @@ static int test_PACKET_get_sub_packet(unsigned char buf[BUF_LEN])
static int test_PACKET_get_bytes(unsigned char buf[BUF_LEN])
{
- unsigned char *bytes;
+ const unsigned char *bytes;
PACKET pkt;
if ( !PACKET_buf_init(&pkt, buf, BUF_LEN)
@@ -310,7 +310,7 @@ static int test_PACKET_strndup()
static int test_PACKET_forward(unsigned char buf[BUF_LEN])
{
- unsigned char *byte;
+ const unsigned char *byte;
PACKET pkt;
if ( !PACKET_buf_init(&pkt, buf, BUF_LEN)