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 /ssl/t1_reneg.c | |
parent | 0c787647ded59a81311d905024bc93df5d3a061c (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 'ssl/t1_reneg.c')
-rw-r--r-- | ssl/t1_reneg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_reneg.c b/ssl/t1_reneg.c index 0aeaa55263..0c090a282d 100644 --- a/ssl/t1_reneg.c +++ b/ssl/t1_reneg.c @@ -145,7 +145,7 @@ int ssl_add_clienthello_renegotiate_ext(SSL *s, unsigned char *p, int *len, int ssl_parse_clienthello_renegotiate_ext(SSL *s, PACKET *pkt, int *al) { unsigned int ilen; - unsigned char *d; + const unsigned char *d; /* Parse the length byte */ if (!PACKET_get_1(pkt, &ilen) @@ -224,7 +224,7 @@ int ssl_parse_serverhello_renegotiate_ext(SSL *s, PACKET *pkt, int *al) unsigned int expected_len = s->s3->previous_client_finished_len + s->s3->previous_server_finished_len; unsigned int ilen; - unsigned char *data; + const unsigned char *data; /* Check for logic errors */ OPENSSL_assert(!expected_len || s->s3->previous_client_finished_len); |