Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
osie
Commits
061f6a85
Commit
061f6a85
authored
Nov 01, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Set x509 certificates policy on same OPC Ua port (default one).""
This reverts commit
837b1b46
.
parent
837b1b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+4
-2
No files found.
coupler/opc-ua-server/server.c
View file @
061f6a85
...
...
@@ -91,7 +91,9 @@ int main(int argc, char **argv)
char
serverUrlBuffer
[
1
][
512
];
server
=
UA_Server_new
();
UA_ServerConfig_setMinimal
(
UA_Server_getConfig
(
server
),
OPC_UA_PORT
,
NULL
);
if
(
!
ENABLE_X509
){
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)
...
...
@@ -157,7 +159,7 @@ int main(int argc, char **argv)
UA_ByteString
*
revocationList
=
NULL
;
size_t
revocationListSize
=
0
;
UA_StatusCode
retval
=
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
4841
,
// XXX: why not use 4840 ?
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
OPC_UA_PORT
,
&
certificate
,
&
privateKey
,
trustList
,
trustListSize
,
issuerList
,
issuerListSize
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment