commit | 38a622b68ba4734b5b7c5c4da3b6c193c5d7dee4 | [log] [tgz] |
---|---|---|
author | mohammad1603 <mohammad.abomokh@arm.com> | Tue Apr 17 03:27:53 2018 -0700 |
committer | itayzafrir <itay.zafrir@arm.com> | Wed Sep 05 11:53:26 2018 +0300 |
tree | 31c701f17ca9048a9054a84bb87be12aaa0fe3fa | |
parent | 5feda72d7a4c3773833d46c1ea6268a5e00ff8be [diff] |
Function psa_get_key_policy() now return policy value for empty slots Function psa_get_key_policy() now return policy value for empty slots
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index c516e38..a253622 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -1346,8 +1346,6 @@ return( PSA_ERROR_INVALID_ARGUMENT ); slot = &global_data.key_slots[key]; - if( slot->type == PSA_KEY_TYPE_NONE ) - return( PSA_ERROR_EMPTY_SLOT ); *policy = slot->policy;