mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	Merge pull request #3384 from mpg/fix-ctr-drbg-deps-2.16
[Backport 2.16] Fix undeclared dependencies on CTR_DRBG (and add test)
This commit is contained in:
		@@ -787,6 +787,20 @@ component_test_rsa_no_crt () {
 | 
				
			|||||||
    if_build_succeeded tests/compat.sh -t RSA
 | 
					    if_build_succeeded tests/compat.sh -t RSA
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					component_test_no_ctr_drbg () {
 | 
				
			||||||
 | 
					    msg "build: Full minus CTR_DRBG"
 | 
				
			||||||
 | 
					    scripts/config.pl full
 | 
				
			||||||
 | 
					    scripts/config.pl unset MBEDTLS_CTR_DRBG_C
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
 | 
				
			||||||
 | 
					    make
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    msg "test: no CTR_DRBG"
 | 
				
			||||||
 | 
					    make test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # no SSL tests as they all depend on CTR_DRBG so far
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
component_test_small_ssl_out_content_len () {
 | 
					component_test_small_ssl_out_content_len () {
 | 
				
			||||||
    msg "build: small SSL_OUT_CONTENT_LEN (ASan build)"
 | 
					    msg "build: small SSL_OUT_CONTENT_LEN (ASan build)"
 | 
				
			||||||
    scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 16384
 | 
					    scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 16384
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1506,7 +1506,7 @@ exit:
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
/* END_CASE */
 | 
					/* END_CASE */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* BEGIN_CASE depends_on:MBEDTLS_ENTROPY_C:ENTROPY_HAVE_STRONG */
 | 
					/* BEGIN_CASE depends_on:MBEDTLS_ENTROPY_C:ENTROPY_HAVE_STRONG:MBEDTLS_ENTROPY_C:MBEDTLS_CTR_DRBG_C */
 | 
				
			||||||
void mbedtls_rsa_validate_params( int radix_N, char *input_N,
 | 
					void mbedtls_rsa_validate_params( int radix_N, char *input_N,
 | 
				
			||||||
                                  int radix_P, char *input_P,
 | 
					                                  int radix_P, char *input_P,
 | 
				
			||||||
                                  int radix_Q, char *input_Q,
 | 
					                                  int radix_Q, char *input_Q,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user