mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Add documentation comment to internal abort functions
Explain the reasoning behind not clearing some variables. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
de1114c883
commit
e6145dc47f
@ -3192,6 +3192,10 @@ static psa_status_t psa_sign_hash_abort_internal(
|
|||||||
|
|
||||||
operation->id = 0;
|
operation->id = 0;
|
||||||
|
|
||||||
|
/* Do not clear either the error_occurred or num_ops elements here as they
|
||||||
|
* only want to be cleared by the application calling abort, not by abort
|
||||||
|
* being called at completion of an operation. */
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3335,6 +3339,10 @@ static psa_status_t psa_verify_hash_abort_internal(
|
|||||||
|
|
||||||
operation->id = 0;
|
operation->id = 0;
|
||||||
|
|
||||||
|
/* Do not clear either the error_occurred or num_ops elements here as they
|
||||||
|
* only want to be cleared by the application calling abort, not by abort
|
||||||
|
* being called at completion of an operation. */
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user