]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/s_cb.c
constify PACKET
[thirdparty/openssl.git] / apps / s_cb.c
index 55d2c39e8ba4695a549b1bc365d947e66c280e9a..5e36e7e2f8a382395bef01fcdfe067591d324f5e 100644 (file)
@@ -722,14 +722,14 @@ static STRINT_PAIR tlsext_types[] = {
 };
 
 void tlsext_cb(SSL *s, int client_server, int type,
-               unsigned char *data, int len, void *arg)
+               const unsigned char *data, int len, void *arg)
 {
     BIO *bio = arg;
     const char *extname = lookup(type, tlsext_types, "unknown");
 
     BIO_printf(bio, "TLS %s extension \"%s\" (id=%d), len=%d\n",
                client_server ? "server" : "client", extname, type, len);
-    BIO_dump(bio, (char *)data, len);
+    BIO_dump(bio, (const char *)data, len);
     (void)BIO_flush(bio);
 }