mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-29 12:03:32 +00:00
Merge branch 'mbedtls-1.3' into mbedtls-1.3-restricted
* mbedtls-1.3: Fix build without MBEDTLS_FS_IO
This commit is contained in:
+4
-1
@@ -61,12 +61,15 @@
|
||||
#define polarssl_free free
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_FS_IO)
|
||||
#if defined(POLARSSL_FS_IO) || \
|
||||
defined(POLARSSL_PKCS12_C) || defined(POLARSSL_PKCS5_C)
|
||||
/* Implementation that should never be optimized out by the compiler */
|
||||
static void polarssl_zeroize( void *v, size_t n ) {
|
||||
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_FS_IO)
|
||||
/*
|
||||
* Load all data from a file into a given buffer.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user