Commit Graph
32 Commits
Author SHA1 Message Date
tomitkl 2076a9c87f feat(plugin): Add filestore Windows implementation (#7006)
* feat(plugin): Add filestore Windows implementation

* Define UA_DT_REG and UA_DT_DIR

* Remove build flag and use __linux__ or UA_ARCHITECTURE_WIN32 in places which used to check only for __linux__
2025-01-10 14:28:37 +01:00
Julius Pfrommer 2b445aecf6 Merge remote-tracking branch 'origin/1.4' into merge_14_master_23 2024-11-05 17:19:45 +01:00
Julius Pfrommer a83bc45ccd refactor(tests): Remove misleading comments - Revocation lists are supported 2024-10-23 07:18:22 +02:00
Noel GrafandJulius Pfrommer 5fa1cf643e feat(plugin): Adding filestore backend security policies (#6564)
* feat(plugin): Add filestore backend security policies to support writing updated certificates back to the file system

* feat(tests): Add test cases for the filestore security policies and the updateCertificate function

---------

Co-authored-by: Julius Pfrommer <jpfr@users.noreply.github.com>
2024-07-23 14:41:48 +02:00
Noel Graf 9c0ea6df95 refactor(server): Removed the old CertificateVerification implementation 2024-06-10 15:27:40 +02:00
Julius Pfrommer 7f81b5e547 refactor(arch): Remove UA_REUSEADDR option -- handle in the global test server constructor 2024-03-22 11:20:20 +01:00
Noel Graf 579d51f75b feat(server): Define the CertificateGroup interface and enable gds push management capabilities in the server information model. 2024-02-23 11:37:52 +01:00
Julius Pfrommer dd300f3eff refactor(tests): Set a custom "fake" clock in the EventLoop for unit tests 2023-10-04 10:56:26 +02:00
Julius Pfrommer 2d9bf66e15 feat(server): Use dedicate PKI for SecureChannel and Session certificates 2023-06-27 07:17:46 +02:00
Andreas Eckerstorfer 022ad60723 fix (tests): Check server instance in UNIT tests
Failed UNIT tests caused an exception in the server loop, if the
server instance could not be created.
2023-01-31 00:07:18 +01:00
Julius Pfrommer 9c4d27ce35 Merge remote-tracking branch 'origin/1.3' into merge_13_master_8 2022-11-14 12:59:31 +01:00
Julius Pfrommer 6674768d7c Merge remote-tracking branch 'origin/1.2' into merge_12_13_7 2022-11-14 11:51:51 +01:00
Julius Pfrommer 106cd61ad9 fix(plugin): Reject all certificates for empty trust-list 2022-11-14 07:28:49 +01:00
Alexander Bluhm 9da153311d test(core): fix sign-conversion compiler errors 2022-07-13 17:37:03 +02:00
Alexander Bluhm 4a0f979516 test(core): fix compiler errors
OpenBSD clang version 13.0.0 complains about -Wsign-conversion
errors.  Use correct types to avoid sign conversion and bad comparison.
2022-05-20 23:50:17 +02:00
Julius Pfrommer de5d26a860 refactor(el): Remove the old server networking code (replaced with EventLoop) 2022-04-20 20:35:29 +02:00
Julius Pfrommer dba1796702 refactor(core): Remove some long deprecated definitions 2021-11-13 20:26:02 +01:00
Julius Pfrommer 5b7a3a14c3 Merge remote-tracking branch 'origin/1.1' into master 2020-11-15 23:18:48 +01:00
Julius Pfrommer 7c23332027 refactor(test): Use _clear instead of _deleteMembers 2020-10-18 15:21:40 +02:00
basyskom-jvoe 4492548ee3 fix(plugin): Improve PEM support for mbedTLS and add tests (#3856)
* Add null terminator before parsing certificates and keys

mbedTLS expects PEM data to be null terminated, the length
parameter must include the null terminator.

By adding the null terminator inside open62541, an application
doesn't have to care what type of certificate or key is used.

* Extend encryption tests

- Add test for security policy Basic256
- Add test with PEM encoded certificate and key

* Fix amalgamation build for ua_pki_default.c

Including securitypolicy_mbedtls_common.h is not possible because
it is added to the amalgamation after ua_pki_default.c
2020-08-27 17:23:47 +02:00
Julius Pfrommer 645b29277f feature(server): Don't start server with mismatching ApplicationUri
Also, upgrade to an error warning
2019-11-18 10:25:41 +01: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
Julius Pfrommer ac88b945ca Tests: Fix asserts on MinGW for encryption tests 2019-07-03 22:20:09 +02:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02:00
Stefan Profanter f19a6a1839 Stack: Correct include for architecture related headers
Fixes #2646
2019-04-18 08:01:45 +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
Julius Pfrommer bcaa6695c0 Client: Store SecurityPolicies in the client config; Refactor connection logic 2019-01-30 18:45:42 +01:00
Julius Pfrommer b4c9fc37eb Client: Initialize client config inside the client structure
Temporarily disable encyrption
2019-01-30 18:45:42 +01:00
Frank Meerkoetter 5bc2cfce90 Do not dynamically allocate a simple bool
Giving this variable a static life time is much simpler.
2019-01-07 08:01:35 +01:00
Julius Pfrommer 52d2549b78 Single header for all SecurityPolicy plugin implementations 2018-08-04 16:42:26 +00:00
StalderT da64add5c0 client basic 256sha256 / server sample / tests / various fixes (#1691)
* client basic 256sha256 / tests / various fixes

* fix server basic256sha256

* remove duplicated loadFile

* Fix fuzzing by making backup of message buffer

* Disable sonarcloud on PRs
2018-03-29 19:15:20 +02:00