mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
- Fixed a whole bunch of dependencies on defines between files, examples and tests
This commit is contained in:
@@ -57,6 +57,13 @@ static int myrand( void *rng_state )
|
||||
|
||||
unsigned char buf[BUFSIZE];
|
||||
|
||||
#if !defined(POLARSSL_TIMING_C)
|
||||
int main( void )
|
||||
{
|
||||
printf("POLARSSL_TIMING_C not defined.\n");
|
||||
return( 0 );
|
||||
}
|
||||
#else
|
||||
int main( void )
|
||||
{
|
||||
int keysize;
|
||||
@@ -75,7 +82,8 @@ int main( void )
|
||||
#if defined(POLARSSL_CAMELLIA_C)
|
||||
camellia_context camellia;
|
||||
#endif
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
#if defined(POLARSSL_RSA_C) && defined(POLARSSL_BIGNUM_C) && \
|
||||
defined(POLARSSL_GENPRIME)
|
||||
rsa_context rsa;
|
||||
#endif
|
||||
|
||||
@@ -263,7 +271,8 @@ int main( void )
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
#if defined(POLARSSL_RSA_C) && defined(POLARSSL_BIGNUM_C) && \
|
||||
defined(POLARSSL_GENPRIME)
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0 );
|
||||
rsa_gen_key( &rsa, myrand, NULL, 1024, 65537 );
|
||||
|
||||
@@ -361,3 +370,4 @@ int main( void )
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* POLARSSL_TIMING_C */
|
||||
|
||||
Reference in New Issue
Block a user