mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Function psa_get_key_policy() now return policy value for empty slots
Function psa_get_key_policy() now return policy value for empty slots
This commit is contained in:
		
							parent
							
								
									5feda72d7a
								
							
						
					
					
						commit
						38a622b68b
					
				@ -1346,8 +1346,6 @@ psa_status_t psa_get_key_policy(psa_key_slot_t key,
 | 
				
			|||||||
        return( PSA_ERROR_INVALID_ARGUMENT );
 | 
					        return( PSA_ERROR_INVALID_ARGUMENT );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    slot = &global_data.key_slots[key];
 | 
					    slot = &global_data.key_slots[key];
 | 
				
			||||||
    if( slot->type == PSA_KEY_TYPE_NONE )
 | 
					 | 
				
			||||||
        return( PSA_ERROR_EMPTY_SLOT );
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    *policy = slot->policy;
 | 
					    *policy = slot->policy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user