mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00: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:
parent
2dc5fa3a19
commit
211ebb51da
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user