commit | 605949f84cfc299304c8940240294561299fe294 | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Jul 12 08:23:59 2019 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Wed Aug 14 15:06:06 2019 +0100 |
tree | 91f5ec6d3c2b25508ba97546f1cf9537f5154b2a | |
parent | fdf660426d5730239fdbdf220bbc90d50b628d31 [diff] [blame] |
Mark ssl_decrypt_buf() as `const in the input SSL context In fact, the SSL context is only used to access the debug callback.
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 46b6df8..9696bd6 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -2554,7 +2554,7 @@ return( 0 ); } -int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context *ssl, +int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl, mbedtls_ssl_transform *transform, mbedtls_record *rec ) {