From 02e518fd27b43d0d452a264304de7b3d38a58ef6 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 18 Feb 2026 17:21:36 +0100 Subject: Make discovery-only None endpoint a createServer option Add a discoveryOnly parameter to createServer(). All secure servers still get the None security policy (needed for the client's initial GetEndpoints handshake) and securityPolicyNoneDiscoveryOnly, but only the LDS registers a None endpoint so purely unencrypted clients can discover it. ServerRegister no longer advertises a None endpoint. --- src/server_lds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server_lds.c') diff --git a/src/server_lds.c b/src/server_lds.c index 14c26b7..99c1e8c 100644 --- a/src/server_lds.c +++ b/src/server_lds.c @@ -115,8 +115,9 @@ main (int argc, char *argv[]) } UA_StatusCode retval; - UA_Server *server = createServer ((UA_UInt16)port, applicationUri, certPath, - keyPath, trustPaths, trustSize, &retval); + UA_Server *server + = createServer ((UA_UInt16)port, applicationUri, certPath, keyPath, + trustPaths, trustSize, true, &retval); if (!server) { freeTrustStore (trustPaths, trustSize); -- cgit v1.2.3