mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Only include config_psa.h from config.h with new-style PSA configuration
In old-style configuration, do not include mbedtls/config_psa.h from mbedtls/config.h. The inclusion should not and did not break any code, but it caused our testing to miss a break of backward compatibility (fixed in "Include config_psa.h from psa/crypto.h"). If users have their own config.h which enabled MBEDTLS_PSA_CRYPTO_C and worked prior to the creation of config_psa.h and MBEDTLS_PSA_CRYPTO_CONFIG, their config.h must keep working. By including config_psa.h from config.h in the legacy case, we weren't testing the legacy configuration mechanism adequately. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		
							parent
							
								
									25fdebf0c6
								
							
						
					
					
						commit
						a26b3e56cb
					
				@ -3856,7 +3856,9 @@
 | 
			
		||||
#include MBEDTLS_USER_CONFIG_FILE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
 | 
			
		||||
#include "mbedtls/config_psa.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "mbedtls/check_config.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user