Mark ssl_decrypt_buf() as `const in the input SSL context

In fact, the SSL context is only used to access the debug callback.
This commit is contained in:
Hanno Becker 2019-07-12 08:23:59 +01:00
parent fdf660426d
commit 605949f84c
2 changed files with 2 additions and 2 deletions

View file

@ -1024,7 +1024,7 @@ int mbedtls_ssl_encrypt_buf( mbedtls_ssl_context *ssl,
mbedtls_record *rec,
int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng );
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 );

View file

@ -2554,7 +2554,7 @@ int mbedtls_ssl_encrypt_buf( mbedtls_ssl_context *ssl,
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 )
{