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 --- include/ouroboros/crypt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ouroboros/crypt.h b/include/ouroboros/crypt.h index ce765158..41e44cee 100644 --- a/include/ouroboros/crypt.h +++ b/include/ouroboros/crypt.h @@ -135,8 +135,10 @@ struct sec_config { int nid; } d; /* digest */ - bool req_auth; /* require peer authentication */ - char cacert[CACERT_PATH_BUFSZ]; /* pinned issuing CA, "" = any */ + struct { + bool req; /* require peer auth */ + char cacert[CACERT_PATH_BUFSZ]; /* pinned CA, "" = any */ + } a; /* authentication */ }; /* Helper macros to set sec_config fields consistently */ -- cgit v1.2.3