Adds casts to zeroize functions to allow building as C++
This commit is contained in:
parent
58eddef8b2
commit
88ffc089bc
9 changed files with 9 additions and 9 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
/* Implementation that should never be optimized out by the compiler */
|
||||
static void mbedtls_zeroize( void *v, size_t n ) {
|
||||
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
|
||||
volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0;
|
||||
}
|
||||
|
||||
static int supported_init = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue