diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-02-01 15:26:18 +0100 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-02-01 16:21:57 +0100 |
commit | b69817449315f3818a8472468b3328ea755819db (patch) | |
tree | bb2abb48ce582d6d9b8fdc6e216ee0028deff817 /test/packettest.c | |
parent | update DSA docs (diff) | |
download | openssl-b69817449315f3818a8472468b3328ea755819db.tar.xz openssl-b69817449315f3818a8472468b3328ea755819db.zip |
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/packettest.c')
-rw-r--r-- | test/packettest.c | 4 |
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) |