summaryrefslogtreecommitdiff
path: root/src/irmd/oap/tests/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/irmd/oap/tests/common.h')
-rw-r--r--src/irmd/oap/tests/common.h12
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);