Commit Graph

181 Commits

Author SHA1 Message Date
Julius Pfrommer de6e63bfff refactor(client): Pull in inline definitions and better typing of async callback methods 2025-02-20 10:45:26 +01:00
Julius Pfrommer e02866372c feat(client): Check if the "CreatedAt" timestamp of the SecurityToken matches the current system clock - consistently use monotonic clock internally 2025-02-04 13:33:31 +01:00
Julius Pfrommer 99d4d46804 Merge remote-tracking branch 'origin/1.4' into merge_14_master_25 2025-01-28 06:55:14 +01:00
Julius Pfrommer 1321281968 refactor(tests): Lock the EventLoop before client/server in the tests 2025-01-26 23:29:22 +01:00
Julius Pfrommer 0e62e11afb Merge remote-tracking branch 'origin/master' into merge_14_master_25 2025-01-20 16:09:35 +01:00
Julius Pfrommer 9ae8b76986 refactor(plugins): Use urn:open62541.unconfigured.application as the default ApplicationUri
We want to have the same default for client and server. So we get less
trouble with reusing certificates. Before we had to manually adjust the
client URI to say "server". That's not good...
2024-12-10 08:28:30 +01:00
Noel Graf d5ce01cee1 fix(tests): Fixed timing issues in tests caused by the generation of the namespace mapping table 2024-12-07 23:03:22 +01:00
Julius Pfrommer 5e7f04b71b Merge remote-tracking branch 'origin/1.4' into merge_14_master_25 2024-12-07 22:55:41 +01:00
Julius Pfrommer 1c26a4fd64 fix(client): The server can send no ServerCertificate in the asym header for #None
Even if a ServerCertificate is defined for the Endpoint. Some servers in
the wild show this behavior. This was reported by @mario-reif in #6926.
2024-12-05 11:08:15 +01:00
Julius Pfrommer c5b39c925d Merge remote-tracking branch 'origin/1.4' into merge_14_master_23 2024-11-06 12:05:21 +01:00
Julius Pfrommer 16264590a6 fix(server): Consider allowNonePolicyPassword in GetEndpoints
Remove all UserTokenPolicies that would allow an unencrypted password
transmitted.
2024-11-06 11:32:02 +01:00
Julius Pfrommer 7a419780ae refactor(tests): Make check_client_async_connect deterministic 2024-10-15 17:39:36 +02:00
Julius Pfrommer 1f8e9f04fa Merge remote-tracking branch 'origin/1.4' into merge_14_master_18 2024-07-27 11:07:53 +02:00
Julius Pfrommer 12142ad4b6 feat(tests): Add a test for async reading of the NodeClass
This previously failed as the "value adjustment" from int32 to the enum
was not done.
2024-07-22 22:30:37 +02:00
Julius Pfrommer d463871863 Merge branch 'publish_pubsub_rt' into merge_14_master_16 2024-06-25 15:53:04 +02:00
Peter Schuster cd444152a9 test(client) Added test for connection termination when server sent an error
If the server sends an error, but does not initiate closing the conenction,
the client previously hung up in an infinite loop (see issue #5783).
2024-06-14 16:06:25 +02:00
Noel Graf 9c0ea6df95 refactor(server): Removed the old CertificateVerification implementation 2024-06-10 15:27:40 +02:00
Julius Pfrommer 5bba2ba794 refactor(core): Fold the <type>_generated_handling.h into <type>_generated.h 2024-05-29 06:14:56 +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 054420cf33 refactor(test): Use the fake clock also for non-monotonic time-source
The subscription tests depend on a deterministic clock.
2023-12-26 00:30:17 +01:00
Julius Pfrommer d6701cb9fb Merge branch '1.4' into merge_14_master_9
# Conflicts:
#	plugins/eventloop/posix/eventloop_posix_udp.c
2023-12-25 22:52:05 +01:00
Julius Pfrommer c136967af3 fix(test): Remove use of raw sleep() in all unit tests 2023-12-25 18:25:35 +01:00
Julius Pfrommer 09317bcc00 Merge remote-tracking branch 'origin/1.4' 2023-11-14 17:39:04 +01:00
Julius Pfrommer c7536e3482 fix(test): Replace outdated certificates in /tests/client/certificates.h
Use a 10 year lifetime so we don't have to do this often.
2023-11-08 23:14:09 +01:00
Julius Pfrommer 9f3adac3d1 feat(test): Add test for MonitoredItem with negative sampling interval 2023-11-08 23:14:09 +01:00
Julius Pfrommer 9eee407857 Merge remote-tracking branch 'origin/1.4' into merge_14_master_7 2023-10-22 11:32:38 +02:00
Julius Pfrommer 71fe28c869 fix(test): Make check_client_subscriptions.c time-deterministic 2023-10-22 10:51:09 +02:00
Julius Pfrommer 6c10a4e941 Merge remote-tracking branch 'origin/1.4' into merge_14_master_5 2023-10-11 20:29:02 +02:00
Julius Pfrommer 751e7dd460 feat(el): Cancel select/epoll when socket is shut down from another thread 2023-10-11 20:28:39 +02:00
Julius Pfrommer 46659f7391 refactor(server): Keep server backpointer in the DiscoveryManager 2023-10-04 10:56:26 +02:00
Julius Pfrommer fe56351714 fix(test): Assorted test fixes for different feature flag combinations 2023-10-04 10:56:26 +02: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 b341cbb3a4 Merge remote-tracking branch 'origin/1.3' into merge_13_14_3 2023-09-06 09:16:37 +02:00
Julius Pfrommer 859fe973fd Merge remote-tracking branch 'origin/1.3' into merge_13_14_3 2023-08-23 21:24:36 +02:00
Julius Pfrommer e250b5c9dd feat(tests): Add a test scaffoling for client discovery functionality 2023-08-21 14:51:12 +02:00
Julius Pfrommer dfa28d1b17 refactor(plugins): Don't set username/password in the default config
This can leave unwanted access possibilities.
2023-08-21 13:36:09 +02:00
Julius Pfrommer 390c092c05 refactor(tests): Include stdlib.h where open62541 no longer does it 2023-07-28 21:42:56 +02:00
Julius Pfrommer 928931ec36 refactor(core): Move architecture-specific definition out of the public headers 2023-07-28 21:42:56 +02:00
Julius Pfrommer c0d8225c12 fix(server): Return EndpointUrl in FindServers as the DiscoveryUrl
This pacifies some warnings in UAExpert.
2023-07-19 12:44:46 +02:00
Julius Pfrommer 2d9bf66e15 feat(server): Use dedicate PKI for SecureChannel and Session certificates 2023-06-27 07:17:46 +02:00
engel-bichlerh 89029f56d1 feat(client): Add ActivateSession dedicated client API 2023-06-01 23:20:31 +02:00
Julius Pfrommer 99f56d3552 refactor(client): Simplify disconnect, add async SecureChannel disconnect 2023-06-01 23:20:31 +02:00
Julius Pfrommer 52c8b0c4f4 Merge remote-tracking branch 'origin/1.3' into merge_master_13_11 2023-05-09 15:17:55 +02:00
Jiří Engelthaler 80c3e91675 fix(server): Transfer subscription - fix queued subscription notifications
When transferring a subscription, TAILQ_FOREACH_SAFE must be used for
queued subscription notifications.

Unit test updated.

Fix #5774
2023-05-09 15:14:49 +02:00
Julius Pfrommer b19cc6d78c refactor(core): Remove UA_SECURECHANNELSTATE_FRESH
Instead use UA_SECURECHANNELSTATE_CLOSED as the default.
This is the pattern used everywhere else as well.
2023-04-29 22:25:30 +02:00
Julius Pfrommer e70c4493d1 fix(server): Symmetric ReferenceTypes don't have an inverse name attribute 2023-04-28 01:03:42 +02:00
Julius Pfrommer 4d5ceb378c Merge remote-tracking branch 'origin/1.3' into merge_13_master_12 2023-03-26 10:21:49 +02:00
Julius Pfrommer 67a4cb637d fix(client): Fix crash during Client_delete (#5649)
UA_Client_AsyncService_removeAll was called "reentrant" leading to an
unauthorized memory access.
2023-02-19 21:15:10 +01:00
Julius Pfrommer 282b5a582b fix(tests): Make check_client_subscriptions more robust wrt timings 2023-02-14 00:40:31 +01:00