commit | 40478be987f899c323e8d6861848055bfd281e0c | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Jul 12 08:23:59 2019 +0100 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Thu Aug 01 09:51:52 2019 +0200 |
tree | ff5045bcade9852e640567c08c235c826c56538e | |
parent | a89610aaf2dd2d78c87f2114b61200b4beb27977 [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 69ba0db..39a32c8 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -2349,7 +2349,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 ) {