From b69817449315f3818a8472468b3328ea755819db Mon Sep 17 00:00:00 2001 From: Emilia Kasper Date: Mon, 1 Feb 2016 15:26:18 +0100 Subject: constify PACKET PACKET contents should be read-only. To achieve this, also - constify two user callbacks - constify BUF_reverse. Reviewed-by: Rich Salz --- ssl/d1_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ssl/d1_lib.c') diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index fed1340377..65e30f7132 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -489,7 +489,8 @@ int dtls1_listen(SSL *s, struct sockaddr *client) int next, n, ret = 0, clearpkt = 0; unsigned char cookie[DTLS1_COOKIE_LENGTH]; unsigned char seq[SEQ_NUM_SIZE]; - unsigned char *data, *p, *buf; + const unsigned char *data; + unsigned char *p, *buf; unsigned long reclen, fragoff, fraglen, msglen; unsigned int rectype, versmajor, msgseq, msgtype, clientvers, cookielen; BIO *rbio, *wbio; -- cgit v1.2.3