From a169a1cef5332a409efc2db07bcc1ae9b72f217e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 21 Jun 2026 13:18:35 +0200 Subject: 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 Signed-off-by: Sander Vrijders --- src/irmd/oap/tests/common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/irmd/oap/tests/common.c') 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); -- cgit v1.2.3