Fix warning and typo->error.

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-24 17:47:40 +02:00
parent 3579522d31
commit 66e20c6318
3 changed files with 5 additions and 4 deletions

View file

@ -37,9 +37,10 @@
/* /*
* You should adjust this to the exact number of sources you're using: default * You should adjust this to the exact number of sources you're using: default
* is the "platform_entrpy_poll" source, but you may want to add other ones * is the "platform_entropy_poll" source, but you may want to add other ones
* Minimum is 2 for the entropy test suite.
*/ */
#define ENTROPY_MAX_SOURCES 1 #define ENTROPY_MAX_SOURCES 2
/* /*
* Save RAM at the expense of interoperability: do this only if you control * Save RAM at the expense of interoperability: do this only if you control

View file

@ -72,7 +72,7 @@
/* /*
* You should adjust this to the exact number of sources you're using: default * You should adjust this to the exact number of sources you're using: default
* is the "platform_entrpy_poll" source, but you may want to add other ones. * is the "platform_entropy_poll" source, but you may want to add other ones.
* Minimum is 2 for the entropy test suite. * Minimum is 2 for the entropy test suite.
*/ */
#define ENTROPY_MAX_SOURCES 2 #define ENTROPY_MAX_SOURCES 2

View file

@ -62,12 +62,12 @@
#define polarssl_free free #define polarssl_free free
#endif #endif
#if defined(POLARSSL_FS_IO)
/* Implementation that should never be optimized out by the compiler */ /* Implementation that should never be optimized out by the compiler */
static void polarssl_zeroize( void *v, size_t n ) { static void polarssl_zeroize( void *v, size_t n ) {
volatile unsigned char *p = v; while( n-- ) *p++ = 0; volatile unsigned char *p = v; while( n-- ) *p++ = 0;
} }
#if defined(POLARSSL_FS_IO)
/* /*
* Load all data from a file into a given buffer. * Load all data from a file into a given buffer.
*/ */