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. --- tests/basic256sha256_anon/server_register.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/basic256sha256_anon/server_register.conf (limited to 'tests/basic256sha256_anon/server_register.conf') diff --git a/tests/basic256sha256_anon/server_register.conf b/tests/basic256sha256_anon/server_register.conf new file mode 100644 index 0000000..798bf31 --- /dev/null +++ b/tests/basic256sha256_anon/server_register.conf @@ -0,0 +1,21 @@ +# ServerRegister — test: basic256sha256_anon + +port = 14841 +applicationUri = urn:bobink.ServerRegister +serverCertificate = certs/ServerRegister_cert.der +serverPrivateKey = certs/ServerRegister_key.der +clientCertificate = certs/ServerRegisterClient_cert.der +clientPrivateKey = certs/ServerRegisterClient_key.der + +discoveryEndpoint = opc.tcp://localhost:14840 +registerInterval = 10 + +securityMode = SignAndEncrypt +securityPolicy = Basic256Sha256 + +serverAuthMode = anonymous + +clientAuthMode = anonymous + +trustList = certs/ServerLDS_cert.der +trustList = certs/ClientFindServers_cert.der -- cgit v1.2.3