mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Prevent warnings in ssl_check_cert_usage() if keyUsage checks are off
This commit is contained in:
		
							parent
							
								
									59366213cb
								
							
						
					
					
						commit
						a77de8c841
					
				@ -4769,6 +4769,12 @@ int ssl_check_cert_usage( const x509_crt *cert,
 | 
				
			|||||||
                          const ssl_ciphersuite_t *ciphersuite,
 | 
					                          const ssl_ciphersuite_t *ciphersuite,
 | 
				
			||||||
                          int cert_endpoint )
 | 
					                          int cert_endpoint )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					#if !defined(POLARSSL_X509_CHECK_KEY_USAGE)
 | 
				
			||||||
 | 
					    ((void) cert);
 | 
				
			||||||
 | 
					    ((void) ciphersuite);
 | 
				
			||||||
 | 
					    ((void) cert_endpoint);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(POLARSSL_X509_CHECK_KEY_USAGE)
 | 
					#if defined(POLARSSL_X509_CHECK_KEY_USAGE)
 | 
				
			||||||
    int usage = 0;
 | 
					    int usage = 0;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user