mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +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) operation;
|
||||||
(void) attributes;
|
(void) attributes;
|
||||||
|
|
||||||
return PSA_SUCCESS;
|
return PSA_ERROR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
psa_status_t psa_generate_key_iop_complete(
|
psa_status_t psa_generate_key_iop_complete(
|
||||||
@ -620,7 +620,7 @@ psa_status_t psa_generate_key_iop_complete(
|
|||||||
(void) operation;
|
(void) operation;
|
||||||
(void) key;
|
(void) key;
|
||||||
|
|
||||||
return PSA_SUCCESS;
|
return PSA_ERROR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
psa_status_t psa_generate_key_iop_abort(
|
psa_status_t psa_generate_key_iop_abort(
|
||||||
@ -628,7 +628,7 @@ psa_status_t psa_generate_key_iop_abort(
|
|||||||
{
|
{
|
||||||
(void) operation;
|
(void) operation;
|
||||||
|
|
||||||
return PSA_SUCCESS;
|
return PSA_ERROR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user