mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Merge pull request #4543 from gilles-peskine-arm/undefined-reference-3.0
Fix missing compilation guard around psa_crypto_driver_wrappers.c
This commit is contained in:
		
						commit
						e913174c8a
					
				
							
								
								
									
										4
									
								
								ChangeLog.d/undefined_reference_without_psa.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ChangeLog.d/undefined_reference_without_psa.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
Bugfix
 | 
			
		||||
   * With MBEDTLS_PSA_CRYPTO_C disabled, some functions were getting built
 | 
			
		||||
     nonetheless, resulting in undefined reference errors when building a
 | 
			
		||||
     shared library. Reported by Guillermo Garcia M. in #4411.
 | 
			
		||||
@ -28,6 +28,8 @@
 | 
			
		||||
 | 
			
		||||
#include "mbedtls/platform.h"
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_PSA_CRYPTO_C)
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_PSA_CRYPTO_DRIVERS)
 | 
			
		||||
 | 
			
		||||
/* Include test driver definition when running tests */
 | 
			
		||||
@ -1777,4 +1779,5 @@ psa_status_t psa_driver_wrapper_mac_abort(
 | 
			
		||||
            return( PSA_ERROR_INVALID_ARGUMENT );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
/* End of automatically generated file. */
 | 
			
		||||
 | 
			
		||||
#endif /* MBEDTLS_PSA_CRYPTO_C */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user