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
1
Merge Requests
1
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
nexedi
osie
Commits
1137aec8
Commit
1137aec8
authored
Feb 08, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
f2a1d5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+2
-4
No files found.
coupler/opc-ua-server/server.c
View file @
1137aec8
...
@@ -1180,7 +1180,6 @@ int main(int argc, char **argv)
...
@@ -1180,7 +1180,6 @@ int main(int argc, char **argv)
if
(
strlen
(
arguments
.
key
)
>
0
&&
strlen
(
arguments
.
certificate
)
>
0
){
if
(
strlen
(
arguments
.
key
)
>
0
&&
strlen
(
arguments
.
certificate
)
>
0
){
char
*
key_filename
=
arguments
.
key
;
char
*
key_filename
=
arguments
.
key
;
char
*
certificate_filename
=
arguments
.
certificate
;
char
*
certificate_filename
=
arguments
.
certificate
;
printf
(
"XXX "
);
/* Load certificate and private key */
/* Load certificate and private key */
UA_ByteString
certificate
=
loadFile
(
certificate_filename
);
UA_ByteString
certificate
=
loadFile
(
certificate_filename
);
UA_ByteString
privateKey
=
loadFile
(
key_filename
);
UA_ByteString
privateKey
=
loadFile
(
key_filename
);
...
@@ -1197,16 +1196,15 @@ int main(int argc, char **argv)
...
@@ -1197,16 +1196,15 @@ int main(int argc, char **argv)
UA_ByteString
*
revocationList
=
NULL
;
UA_ByteString
*
revocationList
=
NULL
;
size_t
revocationListSize
=
0
;
size_t
revocationListSize
=
0
;
UA_StatusCode
retval
=
UA_StatusCode
retval
=
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
484
0
,
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
484
1
,
// XXX: why not use 4840 ?
&
certificate
,
&
privateKey
,
&
certificate
,
&
privateKey
,
trustList
,
trustListSize
,
trustList
,
trustListSize
,
issuerList
,
issuerListSize
,
issuerList
,
issuerListSize
,
revocationList
,
revocationListSize
);
revocationList
,
revocationListSize
);
//The place to fill the hole is very important
//The place to fill the hole is very important
config
->
applicationDescription
.
applicationUri
=
UA_STRING_ALLOC
(
"urn:open62541.server.application"
);
config
->
applicationDescription
.
applicationUri
=
UA_STRING_ALLOC
(
"urn:open62541.server.application"
);
printf
(
"YYYY"
);
}
}
// run server
// run server
UA_StatusCode
retval
=
UA_Server_run
(
server
,
&
running
);
UA_StatusCode
retval
=
UA_Server_run
(
server
,
&
running
);
UA_Server_delete
(
server
);
UA_Server_delete
(
server
);
...
...
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