mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-08 06:42:24 +03:00
Don't return success on a stub
We shouldn't return PSA_SUCCESS from a function that isn't implemented. PSA_ERROR_NOT_SUPPORTED seems like the most appropriate return status for a function that isn't implemented. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
@@ -610,7 +610,7 @@ psa_status_t psa_generate_key_iop_setup(
|
||||
(void) operation;
|
||||
(void) attributes;
|
||||
|
||||
return PSA_SUCCESS;
|
||||
return PSA_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
psa_status_t psa_generate_key_iop_complete(
|
||||
@@ -620,7 +620,7 @@ psa_status_t psa_generate_key_iop_complete(
|
||||
(void) operation;
|
||||
(void) key;
|
||||
|
||||
return PSA_SUCCESS;
|
||||
return PSA_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
psa_status_t psa_generate_key_iop_abort(
|
||||
@@ -628,7 +628,7 @@ psa_status_t psa_generate_key_iop_abort(
|
||||
{
|
||||
(void) operation;
|
||||
|
||||
return PSA_SUCCESS;
|
||||
return PSA_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
/****************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user