diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-07-02 01:18:03 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-07-08 11:02:23 +0200 |
| commit | 02cc763dd69568b832516cf408b95dad47b4d9ff (patch) | |
| tree | c59e0e5a6a55dad8f999b48fdc322c3275f6f7cf /src/irmd/oap/tests/common.h | |
| parent | 92258b43691a7c8fa420941a4d3b3f870e05d55f (diff) | |
| download | ouroboros-02cc763dd69568b832516cf408b95dad47b4d9ff.tar.gz ouroboros-02cc763dd69568b832516cf408b95dad47b4d9ff.zip | |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/oap/tests/common.h')
| -rw-r--r-- | src/irmd/oap/tests/common.h | 12 |
1 files changed, 9 insertions, 3 deletions
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); |
