From 29114f1a562c70a49e367403e38d1045e498da45 Mon Sep 17 00:00:00 2001 From: adustm Date: Tue, 18 Apr 2017 13:06:01 +0200 Subject: [PATCH] Remove unused variables in mbedtls_md5_context + remove unnecessary ifdef __cplusplus --- features/mbedtls/targets/TARGET_STM/md5_alt.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/features/mbedtls/targets/TARGET_STM/md5_alt.h b/features/mbedtls/targets/TARGET_STM/md5_alt.h index 91b3c8db9a..744990f506 100644 --- a/features/mbedtls/targets/TARGET_STM/md5_alt.h +++ b/features/mbedtls/targets/TARGET_STM/md5_alt.h @@ -38,9 +38,6 @@ extern "C" { */ typedef struct { - uint32_t total[2]; /*!< number of bytes processed */ - uint32_t state[4]; /*!< intermediate digest state */ - unsigned char buffer[64]; /*!< data block being processed */ HASH_HandleTypeDef hhash_md5; } mbedtls_md5_context; @@ -99,14 +96,6 @@ void mbedtls_md5_process( mbedtls_md5_context *ctx, const unsigned char data[64] } #endif -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} -#endif - #endif /* MBEDTLS_MD5_ALT */ #endif /* md5_alt.h */