mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	psa: Fix slot number key attribute
Slot number key attribute is specific of dynamically registered drivers and should thus not be computed/ returned in case of keys associated to drivers implementing the new unified driver interface. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
		
							parent
							
								
									ddae0f5642
								
							
						
					
					
						commit
						512ad81318
					
				@ -1201,7 +1201,7 @@ psa_status_t psa_get_key_attributes( mbedtls_svc_key_id_t key,
 | 
				
			|||||||
                                MBEDTLS_PSA_KA_MASK_DUAL_USE );
 | 
					                                MBEDTLS_PSA_KA_MASK_DUAL_USE );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
 | 
					#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
 | 
				
			||||||
    if( psa_key_slot_is_external( slot ) )
 | 
					    if( psa_get_se_driver_entry( slot->attr.lifetime ) != NULL )
 | 
				
			||||||
        psa_set_key_slot_number( attributes,
 | 
					        psa_set_key_slot_number( attributes,
 | 
				
			||||||
                                 psa_key_slot_get_slot_number( slot ) );
 | 
					                                 psa_key_slot_get_slot_number( slot ) );
 | 
				
			||||||
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
 | 
					#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user