Commit 837b1b46 authored by Ivan Tyagov's avatar Ivan Tyagov

Revert "Set x509 certificates policy on same OPC Ua port (default one)."

This reverts commit bc0c17eb.
parent 8474f431
......@@ -91,9 +91,7 @@ int main(int argc, char **argv)
char serverUrlBuffer[1][512];
server = UA_Server_new();
if (!ENABLE_X509){
UA_ServerConfig_setMinimal(UA_Server_getConfig(server), OPC_UA_PORT, NULL);
}
UA_ServerConfig_setMinimal(UA_Server_getConfig(server), OPC_UA_PORT, NULL);
UA_ServerConfig *config = UA_Server_getConfig(server);
/* Disable binding to all specified interface until this feature(open62541 commit:16467fb5a9d2f9458e55071a2ec07bc68e1b960e)
......@@ -159,7 +157,7 @@ int main(int argc, char **argv)
UA_ByteString *revocationList = NULL;
size_t revocationListSize = 0;
UA_StatusCode retval =
UA_ServerConfig_setDefaultWithSecurityPolicies(config, OPC_UA_PORT,
UA_ServerConfig_setDefaultWithSecurityPolicies(config, 4841, // XXX: why not use 4840 ?
&certificate, &privateKey,
trustList, trustListSize,
issuerList, issuerListSize,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment