| 757f40e2 | 11-Feb-2022 |
Ciara Power <[email protected]> |
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values - 0 on success or -EINVAL/-ENOTSUP/-ENOMEM on failure. The session to be used is passed as input.
This adds clarity on the failure of the create function, which enables treating the -ENOTSUP return as TEST_SKIPPED in test apps.
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|