summaryrefslogtreecommitdiff
path: root/src/irmd/oap/tests/common.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-06-21 13:18:35 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-06-29 08:32:59 +0200
commita169a1cef5332a409efc2db07bcc1ae9b72f217e (patch)
tree73475b759b22db778527ef4d7ae016bc12398670 /src/irmd/oap/tests/common.c
parent47034834790e778f28b082842b3ed1c7bd44f29a (diff)
downloadouroboros-a169a1cef5332a409efc2db07bcc1ae9b72f217e.tar.gz
ouroboros-a169a1cef5332a409efc2db07bcc1ae9b72f217e.zip
lib: Group sec_config authentication fields
Nest the flat req_auth and cacert members of struct sec_config into a sub-struct a { req; cacert; }, keeping the authentication settings together. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/oap/tests/common.c')
-rw-r--r--src/irmd/oap/tests/common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irmd/oap/tests/common.c b/src/irmd/oap/tests/common.c
index af815fd4..8c271b2e 100644
--- a/src/irmd/oap/tests/common.c
+++ b/src/irmd/oap/tests/common.c
@@ -36,9 +36,9 @@ int load_srv_kex_config(const struct name_info * info,
memset(cfg, 0, sizeof(*cfg));
- cfg->req_auth = test_cfg.srv.req_auth;
+ cfg->a.req = test_cfg.srv.req_auth;
if (test_cfg.srv.cacert != NULL)
- strcpy(cfg->cacert, test_cfg.srv.cacert);
+ strcpy(cfg->a.cacert, test_cfg.srv.cacert);
/* Digest is kept without kex, as in parse_sec_config */
SET_KEX_DIGEST_NID(cfg, test_cfg.srv.md);
@@ -61,9 +61,9 @@ int load_cli_kex_config(const struct name_info * info,
memset(cfg, 0, sizeof(*cfg));
- cfg->req_auth = test_cfg.cli.req_auth;
+ cfg->a.req = test_cfg.cli.req_auth;
if (test_cfg.cli.cacert != NULL)
- strcpy(cfg->cacert, test_cfg.cli.cacert);
+ strcpy(cfg->a.cacert, test_cfg.cli.cacert);
/* Digest is kept without kex, as in parse_sec_config */
SET_KEX_DIGEST_NID(cfg, test_cfg.cli.md);