From 02cc763dd69568b832516cf408b95dad47b4d9ff Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 2 Jul 2026 01:18:03 +0200 Subject: irmd: Expand and parametrize OAP tests Parametrize the re-key roundtrips over the full (srv_auth, cli_auth) matrix. Add a KEM re-key axis, request-ID and cleartext-echo tamper tests, and an unsupported cipher/kdf/digest NID cluster guarded by an assertion. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/oap/tests/common.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/irmd/oap/tests/common.h') diff --git a/src/irmd/oap/tests/common.h b/src/irmd/oap/tests/common.h index c47096fb..5e32bff0 100644 --- a/src/irmd/oap/tests/common.h +++ b/src/irmd/oap/tests/common.h @@ -39,7 +39,6 @@ struct test_sec_cfg { int kem_mode; /* KEM encapsulation mode (0 for ECDH) */ bool auth; /* Use authentication (certificates) */ bool req_auth; /* Require peer authentication */ - const char * cacert; /* Pinned issuing CA path */ }; /* Test configuration - set by each test before running roundtrip */ @@ -94,10 +93,17 @@ int roundtrip_auth_only(const char * root_ca, const char * im_ca_str); int roundtrip_rekey(const char * root_ca, - const char * im_ca_str); + const char * im_ca_str, + bool srv_auth, + bool cli_auth); int roundtrip_rekey_badcache(const char * root_ca, - const char * im_ca_str); + const char * im_ca_str, + bool cli_auth); + +int roundtrip_rekey_srv_badcache(const char * root_ca, + const char * im_ca_str, + bool srv_auth); int roundtrip_kex_only(void); -- cgit v1.2.3