mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 00:55:28 +00:00
fixup! New function mbedtls_rsa_get_bitlen
In some configurations (like config-mini-tls1_1.h), size is unused. This leads to failures when building with CMake Asan, because that build doesn't use "-Wno-unused-value". Fixes: e01822299624 ("New function mbedtls_rsa_get_bitlen")
This commit is contained in:
parent
854c7a6d2b
commit
c939f6fcba
|
@ -16,6 +16,7 @@ static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len );
|
||||||
static int pk_genkey( mbedtls_pk_context *pk, int size )
|
static int pk_genkey( mbedtls_pk_context *pk, int size )
|
||||||
{
|
{
|
||||||
((void) pk);
|
((void) pk);
|
||||||
|
((void) size);
|
||||||
|
|
||||||
#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_GENPRIME)
|
#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_GENPRIME)
|
||||||
if( mbedtls_pk_get_type( pk ) == MBEDTLS_PK_RSA )
|
if( mbedtls_pk_get_type( pk ) == MBEDTLS_PK_RSA )
|
||||||
|
|
Loading…
Reference in a new issue