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/io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irmd/oap/io.c') diff --git a/src/irmd/oap/io.c b/src/irmd/oap/io.c index 7b661435..dc71fe9e 100644 --- a/src/irmd/oap/io.c +++ b/src/irmd/oap/io.c @@ -120,10 +120,10 @@ int load_kex_config(const char * name, return -1; } - if (cfg->cacert[0] != '\0') { - if (crypt_load_crt_file(cfg->cacert, &pin) < 0) { + if (cfg->a.cacert[0] != '\0') { + if (crypt_load_crt_file(cfg->a.cacert, &pin) < 0) { log_err("Failed to load pinned CA %s for %s.", - cfg->cacert, name); + cfg->a.cacert, name); return -EAUTH; } crypt_free_crt(pin); -- cgit v1.2.3