mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Add check to prevent enabling of RSA without selecting PKCS version(s)
This commit is contained in:
		
							parent
							
								
									4ec1e8193e
								
							
						
					
					
						commit
						37068a79fe
					
				@ -362,6 +362,11 @@
 | 
				
			|||||||
#error "MBEDTLS_RSA_C defined, but not all prerequisites"
 | 
					#error "MBEDTLS_RSA_C defined, but not all prerequisites"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_RSA_C) && ( !defined(MBEDTLS_PKCS1_V21) ||         \
 | 
				
			||||||
 | 
					    !defined(MBEDTLS_PKCS1_V15) )
 | 
				
			||||||
 | 
					#error "MBEDTLS_RSA_C defined, but none of the PKCS1 versions enabled"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) &&                        \
 | 
					#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) &&                        \
 | 
				
			||||||
    ( !defined(MBEDTLS_RSA_C) || !defined(MBEDTLS_PKCS1_V21) )
 | 
					    ( !defined(MBEDTLS_RSA_C) || !defined(MBEDTLS_PKCS1_V21) )
 | 
				
			||||||
#error "MBEDTLS_X509_RSASSA_PSS_SUPPORT defined, but not all prerequisites"
 | 
					#error "MBEDTLS_X509_RSASSA_PSS_SUPPORT defined, but not all prerequisites"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user