File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
features/mbedtls/platform Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ mbedtls_platform_context;
49
49
* implementation is platform-specific, and its implementation MUST be provided.
50
50
*
51
51
*/
52
- int crypto_platform_setup ( crypto_platform_ctx * ctx );
52
+ int crypto_platform_setup ( crypto_platform_ctx * unused_ctx );
53
53
54
54
/**
55
55
* \brief This function performs any platform teardown operations, to disable cryptographic operations.
@@ -60,7 +60,7 @@ int crypto_platform_setup( crypto_platform_ctx *ctx );
60
60
* Its implementation is platform-specific,and its implementation MUST be provided.
61
61
*
62
62
*/
63
- void crypto_platform_terminate ( crypto_platform_ctx * ctx );
63
+ void crypto_platform_terminate ( crypto_platform_ctx * unused_ctx );
64
64
#endif
65
65
#endif /* __PLATFORM_ALT__ */
66
66
Original file line number Diff line number Diff line change 24
24
25
25
mbedtls_platform_context ctx = { };
26
26
27
- int mbedtls_platform_setup ( mbedtls_platform_context * obsolete_ctx )
27
+ int mbedtls_platform_setup ( mbedtls_platform_context * unused_ctx )
28
28
{
29
29
int ret = 0 ;
30
30
@@ -38,9 +38,8 @@ int mbedtls_platform_setup( mbedtls_platform_context *obsolete_ctx )
38
38
return ( ret );
39
39
}
40
40
41
- void mbedtls_platform_teardown ( mbedtls_platform_context * obsolete_ctx )
41
+ void mbedtls_platform_teardown ( mbedtls_platform_context * unused_ctx )
42
42
{
43
-
44
43
core_util_atomic_decr_u32 ( ( volatile uint32_t * )& ctx .reference_count , 1 );
45
44
if ( ctx .reference_count < 1 )
46
45
{
You can’t perform that action at this time.
0 commit comments