mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Changing the places of the mbedtls_test_hook_test_fail callback declaration
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
		
							parent
							
								
									12c77410eb
								
							
						
					
					
						commit
						3daaea858b
					
				@ -24,7 +24,6 @@
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "mbedtls/build_info.h"
 | 
			
		||||
#include "common.h"
 | 
			
		||||
 | 
			
		||||
/* Test code may use deprecated identifiers only if the preprocessor symbol
 | 
			
		||||
 * MBEDTLS_TEST_DEPRECATED is defined. When building tests, set
 | 
			
		||||
@ -239,6 +238,7 @@ $platform_code
 | 
			
		||||
int main( int argc, const char *argv[] )
 | 
			
		||||
{
 | 
			
		||||
#if defined(MBEDTLS_TEST_HOOKS)
 | 
			
		||||
    extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const char * file );
 | 
			
		||||
    mbedtls_test_hook_test_fail = &mbedtls_test_fail;
 | 
			
		||||
#if defined(MBEDTLS_ERROR_C)
 | 
			
		||||
    mbedtls_test_hook_error_add = &mbedtls_test_err_add_check;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user