aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/odp/ipsec/ipsec.c
diff options
context:
space:
mode:
authorSzymon Sliwa <szs@semihalf.com>2018-02-19 11:53:47 +0100
committerSzymon Sliwa <szs@semihalf.com>2018-02-19 17:47:48 +0100
commitf07c57b36821e8fa508e8de409bc5c2c912b71b5 (patch)
treef092d1e6e68a04575c6a09a00307f6f7432c86dd /src/plugins/odp/ipsec/ipsec.c
parent1614193934c406619fd75db027421fdcaa723921 (diff)
plugins: odp: ipsec: style changes
1) add footer to check style 2) fix style 3) change the TODO note to a more descriptive one Change-Id: I232c937c13bc0d5f206ebb4426b50bebc512a192 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
Diffstat (limited to 'src/plugins/odp/ipsec/ipsec.c')
-rw-r--r--src/plugins/odp/ipsec/ipsec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/odp/ipsec/ipsec.c b/src/plugins/odp/ipsec/ipsec.c
index 63c104e0..0e552fba 100644
--- a/src/plugins/odp/ipsec/ipsec.c
+++ b/src/plugins/odp/ipsec/ipsec.c
@@ -95,7 +95,7 @@ create_sess (ipsec_sa_t * sa, sa_data_t * sa_sess_data, int is_outbound)
const int max_auth_capa_amount = 8;
odp_crypto_auth_capability_t capa[max_auth_capa_amount];
- int actual_capa_amount;
+ int actual_capa_amount;
crypto_params.auth_cipher_text = 1;
@@ -202,7 +202,10 @@ create_sess (ipsec_sa_t * sa, sa_data_t * sa_sess_data, int is_outbound)
clib_error_t *
odp_ipsec_check_support (ipsec_sa_t * sa)
{
- // TODO maybe we should check what crypto is available or something?
+ /* TODO check if the parameters present in the security association
+ are supported by the odp_crypto/odp_ipsec, currently that that
+ is partially checked during the creation of the crypto session,
+ the odp_ipsec does not check it at all. */
return 0;
}