From a54421dd976fd8081e96c11c2621076876c9986b Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 17 Feb 2026 11:07:37 +0100 Subject: Replace CLI arguments with config-file parser and add integration tests Introduce a reusable key=value config parser (config.h/c) and convert all three programs to read their settings from config files instead of positional command-line arguments. Add example config files in config/ and 6 CTest integration tests covering None/Basic256Sha256/Aes128 with anonymous and user authentication. Remove the now-obsolete launch.sh. --- config/server_lds.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 config/server_lds.conf (limited to 'config/server_lds.conf') diff --git a/config/server_lds.conf b/config/server_lds.conf new file mode 100644 index 0000000..a30106c --- /dev/null +++ b/config/server_lds.conf @@ -0,0 +1,25 @@ +# ServerLDS configuration +# +# Keys: +# port Server port number +# applicationUri OPC UA application URI +# certificate Path to server certificate (.der) +# privateKey Path to server private key (.der) +# cleanupTimeout Seconds before stale registrations are removed (must be > 10) +# authMode "anonymous" or "user" +# username Username (required when authMode = user) +# password Password (required when authMode = user) +# trustList Trusted certificate path (repeat for multiple) + +port = 4840 +applicationUri = urn:bobink.ServerLDS +certificate = certs/ServerLDS_cert.der +privateKey = certs/ServerLDS_key.der +cleanupTimeout = 60 + +authMode = user +username = user +password = password + +trustList = certs/ServerRegisterClient_cert.der +trustList = certs/ClientFindServers_cert.der -- cgit v1.2.3