aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2023-04-13 11:42:57 +0000
committerPetri Savolainen <petri.savolainen@nokia.com>2023-04-14 13:29:35 +0300
commit149b6278c25c7bd81b2fb95bae1747b02ba6490a (patch)
treee59b04a82f63fdd09a6f9509ae6c02654e9cd28c /test
parentd1433e17eda246d24b61cadae88b339f5a0226ba (diff)
helper: ipsec: fix pass-by-value
Instead of passing capability structure to `odph_ipsec_alg_check()` as value, pass read-only pointer to it. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r--test/performance/odp_ipsec.c2
-rw-r--r--test/validation/api/ipsec/ipsec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/performance/odp_ipsec.c b/test/performance/odp_ipsec.c
index 50e26b1c9..677e7762f 100644
--- a/test/performance/odp_ipsec.c
+++ b/test/performance/odp_ipsec.c
@@ -930,7 +930,7 @@ run_measure_one_config(ipsec_args_t *cargs,
return -1;
}
- rc = odph_ipsec_alg_check(capa, config->crypto.cipher_alg,
+ rc = odph_ipsec_alg_check(&capa, config->crypto.cipher_alg,
config->crypto.cipher_key.length,
config->crypto.auth_alg,
config->crypto.auth_key.length);
diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c
index 11860bf9b..7169bcd17 100644
--- a/test/validation/api/ipsec/ipsec.c
+++ b/test/validation/api/ipsec/ipsec.c
@@ -266,7 +266,7 @@ int ipsec_check(odp_bool_t ah,
if (ah && (ODP_SUPPORT_NO == capa.proto_ah))
return ODP_TEST_INACTIVE;
- if (odph_ipsec_alg_check(capa, cipher, cipher_bits / 8, auth,
+ if (odph_ipsec_alg_check(&capa, cipher, cipher_bits / 8, auth,
auth_bits / 8) < 0)
return ODP_TEST_INACTIVE;