From 7ae6ed4435cee8a6ec5bb48e9f93ee53c2da2fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 13 Mar 2020 11:28:19 +0100 Subject: [PATCH] Keep SSL context const when hw accel is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- library/ssl_tls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index d81d1e1e6..973a36ac3 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -826,6 +826,9 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform, const unsigned char randbytes[64], int minor_ver, unsigned endpoint, +#if !defined(MBEDTLS_SSL_HW_RECORD_ACCEL) + const +#endif mbedtls_ssl_context *ssl ) { int ret = 0;