aboutsummaryrefslogtreecommitdiff
path: root/include/odp
diff options
context:
space:
mode:
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>2015-02-25 12:14:11 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-02-25 18:26:55 +0300
commit1b8b12ec375c201bd161096aa7b7dddb9450252b (patch)
treefd9fe4a7ef8e3497d24b25c198f550fd058020b9 /include/odp
parent3d162117730de7c5921aa8aebe1fcddb2e30ab71 (diff)
api: crypto: add session destroy function
Number of crypto sessions may be limited by HW. Application should be able to destroy unused sessions. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r--include/odp/api/crypto.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/odp/api/crypto.h b/include/odp/api/crypto.h
index a71753c6d..d8628b2e2 100644
--- a/include/odp/api/crypto.h
+++ b/include/odp/api/crypto.h
@@ -274,6 +274,19 @@ odp_crypto_session_create(odp_crypto_session_params_t *params,
enum odp_crypto_ses_create_err *status);
/**
+ * Crypto session destroy
+ *
+ * Destroy an unused session. Result is undefined if session is being used
+ * (i.e. asynchronous operation is in progress).
+ *
+ * @param session Session handle
+ *
+ * @retval 0 on success
+ * @retval <0 on failure
+ */
+int odp_crypto_session_destroy(odp_crypto_session_t session);
+
+/**
* Return crypto completion handle that is associated with event
*
* Note: any invalid parameters will cause undefined behavior and may cause