mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Add config option for X.509/TLS to use PSA
This commit is contained in:
		
							parent
							
								
									a678f233a7
								
							
						
					
					
						commit
						26fd730876
					
				@ -670,6 +670,10 @@
 | 
			
		||||
#endif
 | 
			
		||||
#undef MBEDTLS_THREADING_IMPL
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) && !defined(MBEDTLS_PSA_CRYPTO_C)
 | 
			
		||||
#error "MBEDTLS_USE_PSA_CRYPTO defined, but not all prerequisites"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_VERSION_FEATURES) && !defined(MBEDTLS_VERSION_C)
 | 
			
		||||
#error "MBEDTLS_VERSION_FEATURES defined, but not all prerequisites"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -1616,6 +1616,20 @@
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_THREADING_PTHREAD
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_USE_PSA_CRYPTO
 | 
			
		||||
 *
 | 
			
		||||
 * Make the X.509 and TLS library use PSA for cryptographic operations, see
 | 
			
		||||
 * #MBEDTLS_PSA_CRYPTO_C.
 | 
			
		||||
 *
 | 
			
		||||
 * Note: this option is still in progress, the full X.509 and TLS modules are
 | 
			
		||||
 * not covered yet, but parts that are not ported to PSA yet will still work
 | 
			
		||||
 * as usual, so enabling this option should not break backwards compatibility.
 | 
			
		||||
 *
 | 
			
		||||
 * Requires: MBEDTLS_PSA_CRYPTO_C.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_USE_PSA_CRYPTO
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_VERSION_FEATURES
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
@ -522,6 +522,9 @@ static const char *features[] = {
 | 
			
		||||
#if defined(MBEDTLS_THREADING_PTHREAD)
 | 
			
		||||
    "MBEDTLS_THREADING_PTHREAD",
 | 
			
		||||
#endif /* MBEDTLS_THREADING_PTHREAD */
 | 
			
		||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
 | 
			
		||||
    "MBEDTLS_USE_PSA_CRYPTO",
 | 
			
		||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
 | 
			
		||||
#if defined(MBEDTLS_VERSION_FEATURES)
 | 
			
		||||
    "MBEDTLS_VERSION_FEATURES",
 | 
			
		||||
#endif /* MBEDTLS_VERSION_FEATURES */
 | 
			
		||||
 | 
			
		||||
@ -36,6 +36,8 @@
 | 
			
		||||
#       - this could be enabled if the respective tests were adapted
 | 
			
		||||
#   MBEDTLS_ZLIB_SUPPORT
 | 
			
		||||
#   MBEDTLS_PKCS11_C
 | 
			
		||||
#   MBEDTLS_USE_PSA_CRYPTO
 | 
			
		||||
#       - experimental, and more an alternative implementation than a feature
 | 
			
		||||
#   and any symbol beginning _ALT
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
@ -99,6 +101,7 @@ MBEDTLS_NO_64BIT_MULTIPLICATION
 | 
			
		||||
MBEDTLS_PSA_CRYPTO_SPM
 | 
			
		||||
MBEDTLS_PSA_HAS_ITS_IO
 | 
			
		||||
MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C
 | 
			
		||||
MBEDTLS_USE_PSA_CRYPTO
 | 
			
		||||
_ALT\s*$
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user