summaryrefslogtreecommitdiff
path: root/src/irmd/oap/io.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/io.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/io.c')
-rw-r--r--src/irmd/oap/io.c6
1 files changed, 3 insertions, 3 deletions
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);