Commit Graph
63 Commits
Author SHA1 Message Date
Julius Pfrommer e7d3e385e5 fix(tests): Fix a false positive in the latest GCC 2020-01-25 19:33:26 +01:00
Julius Pfrommer c168987335 feature(example): server_ctt: enableTimestampCheck without encyrption 2019-11-18 10:25:41 +01:00
Julius Pfrommer 508c8a3bac fix(examples): Fix edge case memleaks in server_ctt 2019-11-18 10:25:41 +01:00
Julius Pfrommer 7fbf9b9e73 refactor(examples): Comment long ifdef macros 2019-11-13 23:19:28 +01:00
Julius Pfrommer 8bea4e4363 refactor(core): Replace deleteMembers with clear in UA_CertificateVerification 2019-10-03 15:14:24 +02:00
matkonnerth 777eb9339d Server: Read Datatype Definitions of Structures 2019-08-15 18:05:42 +02:00
Stefan Profanter 6752ff9518 Merge branch '1.0' into master 2019-08-08 14:04:08 +02:00
Julius Pfrommer 6f79ec6e8f Server: Reload folders with certificates during runtime 2019-08-08 09:59:15 +02:00
Jayanth Velusamy 7db99c424c CTT: Assign random values for Scale Test variables
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-08 07:10:24 +02:00
Jayanth Velusamy c83eb2e1cc CTT: Individual configuration for disabling Security Policies
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-08 07:10:24 +02:00
Stefan Profanter 40d9e588cd Merge branch '1.0' into master 2019-08-05 12:53:27 +02:00
Jayanth Velusamy 0a168e9a0c CTT: Assign random values for Scale Test variables
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-04 10:27:15 +02:00
Jayanth Velusamy 19f8b89d7d CTT: Individual configuration for disabling Security Policies
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-02 07:28:55 +02:00
Julius Pfrommer e3e79c0652 CTT: Disable Basic256 policy if outdated policies are not wanted 2019-08-01 08:04:29 +02:00
Jayanth Velusamy b6f285b5da CTT: Set realistic values for Operation limits
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-01 08:04:29 +02:00
Julius Pfrommer caa20e1c4f Server: Add a configurable delay to the server shutdown
In order to notify clients about an imminent shutdown.
2019-08-01 08:04:29 +02:00
Jayanth Velusamy 28072cee92 [CTT] Disable timestamp check in FindServerRequest
- Some OPC UA reference client have issue in establishing a
   connection due to request header timestamp = '0'

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-08-01 08:04:29 +02:00
Julius Pfrommer c695113574 CTT: Disable unencrypted and anonymous login by default in the CTT 2019-08-01 08:04:29 +02:00
Jayanth Velusamy a680b75e1e CTT: Set realistic values for Operation limits
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-31 22:29:14 +02:00
Julius Pfrommer 01bcaa2f4e Server: Add a configurable delay to the server shutdown
In order to notify clients about an imminent shutdown.
2019-07-31 20:01:15 +02:00
Jayanth Velusamy 7cc093444f [CTT] Disable timestamp check in FindServerRequest
- Some OPC UA reference client have issue in establishing a
   connection due to request header timestamp = '0'

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-31 14:33:41 +02:00
Julius Pfrommer 3883e07ebb CTT: Create config before starting the server 2019-07-25 14:52:15 +02:00
Jayanth Velusamy 743190c2cf [CTT] Disable outdated security policies
- The security policies Basic128Rsa15, Basic256
   have been deprecated by OPCF
 - Fix BadNodeId exist error

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-25 14:51:52 +02:00
Julius Pfrommer 43396e37dd CTT: Add scale test, a folder with more than 1000 dynamic variables 2019-07-25 14:51:36 +02:00
Jayanth Velusamy 005135d945 [CTT] Fix loading revocation list
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-25 14:51:29 +02:00
Julius Pfrommer 1ab2e1f6fd CTT: Disable unencrypted and anonymous login by default in the CTT 2019-07-25 14:51:21 +02:00
Jayanth Velusamy 328b63cf36 [CTT] Multiple fixes
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-25 14:51:06 +02:00
Julius Pfrommer 0a4dfd4dd1 CTT: Create config before starting the server 2019-07-25 14:43:27 +02:00
Jayanth Velusamy 8aab7f8292 [CTT] Disable outdated security policies
- The security policies Basic128Rsa15, Basic256
   have been deprecated by OPCF
 - Fix BadNodeId exist error

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-25 14:43:27 +02:00
Julius Pfrommer b0971ef585 CTT: Add scale test, a folder with more than 1000 dynamic variables 2019-07-24 11:17:11 +02:00
Jayanth Velusamy 4a11b8aed0 [CTT] Fix loading revocation list
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-24 11:16:39 +02:00
Julius Pfrommer 6aa4d8d9d2 CTT: Disable unencrypted and anonymous login by default in the CTT 2019-07-24 07:13:52 +02:00
Jayanth Velusamy 89ada3563f [CTT] Multiple fixes
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-07-24 07:13:27 +02:00
Asish Ganesh 436f29b03a [TASK] Pass issuer list separately
- At present issuer list is passed in trust list
 - Add functionality to pass the issuer list separately
 - Handle condition where a client is connected using
   an (trusted) issued certificate of a CA that is not
   trusted but available
 - This resolves test case number 044.js and 045.js in
   Security Certificate Validation to pass simultaneously
 - usage : ./server_ctt <server-certificate.der> <private-key.der>
           [--trustlist <tl1.ctl> <tl2.ctl> ... ]
           [--issuerlist <il1.der> <il2.der> ... ]
           [--revocationlist <rv1.crl> <rv2.crl> ...]

Change-Id: I4a25af9f4c2b771da9492fafb534f72dcc6fc17d
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
2019-07-05 14:10:17 +02:00
Asish Ganesh 2ef4bfd34b [FIX] Usability bug fix in server_ctt
- At present the check "help" in argv to call the
   usage() function is not handled as expected
 - In either case the the code goes into the if
   condition and returns EXIT_SUCCESS
 - Fix the minor issue so that code returns this status
   if it identifies --help or -h

Change-Id: I56876ac562647076a5b33259b2ea398b3bc5e584
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
2019-07-05 14:10:17 +02:00
Julius Pfrommer c4bce59c57 CTT: Fix loading the revocation list 2019-07-01 20:49:24 +02:00
Julius Pfrommer aff76e6f77 CTT: Fix loading the trustlist / revocation list in server_ctt 2019-06-23 19:39:57 +02:00
Asish Ganesh 1355d9f762 [FIX] Add support for reading multiple CRL files to server_ctt
- At present only the first CRL file is taken
 - server_ctt enabled to take multiple CRL files in place of
   one CRL file
 - Test case 038.js and 047.js in Security Certificate
   Validation passes simultaneously unlike before

Change-Id: Ib2aebaec73b80d6e35cbf7ca5fc65c62f52d1521
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
2019-06-07 03:18:41 +02:00
Asish Ganesh 77b2a33290 [TASK] Add support for passing certificates to server_ctt
- Added command line argument to pass trusted certificate
   and CRL files
 - Copy all certificates to open62541\build\bin\examples\trustList
 - Copy all revocation list to open62541\build\bin\examples\crl
 - usage : ./server_ctt server_cert.der server_key.der
           <number of certificates>
           <number of revocation files> trustList/* crl/*

Change-Id: I989782f9412e39c290389db1002bcaef6fcd41a5
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
2019-05-23 11:11:57 +02:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Frank Meerkoetter 1648fb8aaa Use EXIT_SUCCESS/FAILURE for the examples
Make use of EXIT_SUCCESS and EXIT_FAILURE from stdlib.h.
The previous approach of returning a value from UA_StatusCode
was often broken as an exit code can (portably) only be between 0 and 125.
2019-02-09 09:34:46 +01:00
Julius Pfrommer 0d3048e202 CTT: Add Integer and UInteger scalars 2019-01-28 07:20:19 +01:00
Julius Pfrommer 53e117df7f CTT: Deterministic NodeId for the CurrentTime node 2019-01-28 07:20:19 +01:00
Stefan Profanter 36641ad6a5 cmake: Remove UA_NO_AMALGAMATION and use UA_ENABLE_AMALGAMATION instead
Since default build is without amalgamation, we should assume that and only
ifdefs is amalgamation is enabled
2018-12-19 01:59:38 +01:00
Stefan Profanter d715db1057 Stack: Use non-amalgamated headers in all the examples
For consistency we recommend using non-amalgamation install, thus the
examples should also use the non-amalgamated headers.
2018-12-17 22:40:07 +01:00
Julius Pfrommer eb9409b435 Examples: Use _clear instead of _deleteMembers for the examples 2018-12-09 19:40:02 +01:00
Martin Lang 4b9cb3c034 Replace ValueRanks by defines (#2124)
* Replace ValueRanks by defines

* Update tests/client/check_client_highlevel.c
2018-10-20 15:46:30 +02:00
Ari 00eef714d6 Check if server_ctt certificate and private key are found
If the files aren't found give the user an error
2018-08-27 17:56:19 +02:00