commit | c26f8d467aa4800eac2a633ed1d2bbf7f53f5b34 | [log] [tgz] |
---|---|---|
author | Ronald Cron <ronald.cron@arm.com> | Tue Sep 01 10:51:51 2020 +0200 |
committer | Ronald Cron <ronald.cron@arm.com> | Tue Nov 10 16:00:41 2020 +0100 |
tree | 9f73c153d389143ae94c254b5492a8cc37549834 | |
parent | 91e951542494d2a389ba2fad6df102ee90ec7c0d [diff] [blame] |
Introduce psa_key_handle_is_null inline function Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 85d9df4..5d9b34e 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -1300,7 +1300,7 @@ psa_se_drv_table_entry_t *driver; #endif /* MBEDTLS_PSA_CRYPTO_SE_C */ - if( handle == 0 ) + if( psa_key_handle_is_null( handle ) ) return( PSA_SUCCESS ); status = psa_get_key_slot( handle, &slot );