mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Add ifdef for MBEDTLS_ECP_C around ecc_group_to_psa functions
These are unused if MBEDTLS_ECP_C isn't defined.
This commit is contained in:
		
							parent
							
								
									efb52d53bf
								
							
						
					
					
						commit
						8f8aa8f931
					
				@ -411,6 +411,7 @@ static psa_status_t psa_get_key_from_slot( psa_key_slot_t key,
 | 
				
			|||||||
/* Key management */
 | 
					/* Key management */
 | 
				
			||||||
/****************************************************************/
 | 
					/****************************************************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_ECP_C)
 | 
				
			||||||
static psa_ecc_curve_t mbedtls_ecc_group_to_psa( mbedtls_ecp_group_id grpid )
 | 
					static psa_ecc_curve_t mbedtls_ecc_group_to_psa( mbedtls_ecp_group_id grpid )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    switch( grpid )
 | 
					    switch( grpid )
 | 
				
			||||||
@ -480,6 +481,7 @@ static mbedtls_ecp_group_id mbedtls_ecc_group_of_psa( psa_ecc_curve_t curve )
 | 
				
			|||||||
            return( MBEDTLS_ECP_DP_NONE );
 | 
					            return( MBEDTLS_ECP_DP_NONE );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif /* defined(MBEDTLS_ECP_C) */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static psa_status_t prepare_raw_data_slot( psa_key_type_t type,
 | 
					static psa_status_t prepare_raw_data_slot( psa_key_type_t type,
 | 
				
			||||||
                                           size_t bits,
 | 
					                                           size_t bits,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user