diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 17:21:36 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 17:21:36 +0100 |
| commit | 02e518fd27b43d0d452a264304de7b3d38a58ef6 (patch) | |
| tree | 6083c3d5bc6e78edfe33933d18ad09fb5f8dfca5 /src/server_lds.c | |
| parent | 80aa098905cd7925cf6b665bba9d69621c44cc04 (diff) | |
| download | BobinkCOpcUa-02e518fd27b43d0d452a264304de7b3d38a58ef6.tar.gz BobinkCOpcUa-02e518fd27b43d0d452a264304de7b3d38a58ef6.zip | |
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.
Diffstat (limited to 'src/server_lds.c')
| -rw-r--r-- | src/server_lds.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
