mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fix undefined function in platform.c
The bug was introduced in 79a2e7ef069d6 and is not present in the default configuration, which let it go unnoticed so far.
This commit is contained in:
		
							parent
							
								
									82d607eb9e
								
							
						
					
					
						commit
						a268da9478
					
				@ -29,6 +29,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "mbedtls/platform.h"
 | 
					#include "mbedtls/platform.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_ENTROPY_NV_SEED) && \
 | 
				
			||||||
 | 
					    !defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS) && defined(MBEDTLS_FS_IO)
 | 
				
			||||||
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
 | 
					    volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_PLATFORM_MEMORY)
 | 
					#if defined(MBEDTLS_PLATFORM_MEMORY)
 | 
				
			||||||
#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
 | 
					#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
 | 
				
			||||||
static void *platform_calloc_uninit( size_t n, size_t size )
 | 
					static void *platform_calloc_uninit( size_t n, size_t size )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user