Cleanup ifdef statements

This commit is contained in:
Paul Bakker 2016-05-12 12:46:28 +01:00
parent d1fe7aabc9
commit 21cc5741cf

View File

@ -804,7 +804,7 @@ int mbedtls_rsa_rsaes_pkcs1_v15_decrypt( mbedtls_rsa_context *ctx,
int ret; int ret;
size_t ilen, pad_count = 0, i; size_t ilen, pad_count = 0, i;
unsigned char *p, bad, pad_done = 0; unsigned char *p, bad, pad_done = 0;
#ifdef __clang_analyzer__ #if defined(__clang_analyzer__)
/* Shut up Clang, mbedtls_rsa_public/private writes to this */ /* Shut up Clang, mbedtls_rsa_public/private writes to this */
unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { }; unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { };
#else #else
@ -1193,7 +1193,7 @@ int mbedtls_rsa_rsassa_pss_verify_ext( mbedtls_rsa_context *ctx,
size_t slen, msb; size_t slen, msb;
const mbedtls_md_info_t *md_info; const mbedtls_md_info_t *md_info;
mbedtls_md_context_t md_ctx; mbedtls_md_context_t md_ctx;
#ifdef __clang_analyzer__ #if defined(__clang_analyzer__)
/* Shut up Clang, mbedtls_rsa_public/private writes to this */ /* Shut up Clang, mbedtls_rsa_public/private writes to this */
unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { }; unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { };
#else #else
@ -1340,7 +1340,7 @@ int mbedtls_rsa_rsassa_pkcs1_v15_verify( mbedtls_rsa_context *ctx,
mbedtls_md_type_t msg_md_alg; mbedtls_md_type_t msg_md_alg;
const mbedtls_md_info_t *md_info; const mbedtls_md_info_t *md_info;
mbedtls_asn1_buf oid; mbedtls_asn1_buf oid;
#ifdef __clang_analyzer__ #if defined(__clang_analyzer__)
/* Shut up Clang, mbedtls_rsa_public/private writes to this */ /* Shut up Clang, mbedtls_rsa_public/private writes to this */
unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { }; unsigned char buf[MBEDTLS_MPI_MAX_SIZE] = { };
#else #else