775 Commits
Author SHA1 Message Date
Jannis Voelker d0c2e5989f Fix modification of monitored items
If a client handle is modified after creation, the new value is used in
data change notifications from the server. If the new handle doesn't match
the initial handle, the client is unable to dispatch the data change
notification to the callback associated with the monitored item.

Client handles supplied by the API user during monitored item creation
are replaced internally by a counter value and there is no way to retrieve
the client handle for a monitored item after its creation.
Setting the client handle from the monitored item id before sending the
modify request to the server solves that problem.
2019-05-29 11:10:59 +02:00
Jannis Voelker a70569578f Don't include stdbool.h for a C++ build with MSVC <= 2012 2019-05-10 09:02:35 +02:00
StalderT 8c6d10f908 don't call UA_Client_manuallyRenewSecureChannel if a message is pending in the current chunk (prevent reentrant code) 2018-11-11 16:31:14 +01:00
StalderT 28081f7c24 Add Boolean to the numeric data types author: @jpfr 2018-11-09 09:34:18 +01:00
StalderT 2f57f13a36 Replace ValueRanks by defines (author @mlang-de) 2018-10-26 11:48:35 +02:00
StalderT 2baef65f37 add comments about the duration 2018-10-17 16:53:15 +02:00
StalderT d2735ff51b periodic connectivity check and timed async service 2018-09-21 10:26:22 +02:00
Julius Pfrommer 5ac55dd633 CTT: Compare the ApplicationURI in the certificate for CreateSession 2018-07-25 17:17:59 +02:00
Stefan Profanter c40228e18a Update doc and remove UA_ENABLE_GENERATE_NAMESPACE0. Fixes #1857
Superseeded by `UA_ENABLE_FULL_NS0`
2018-06-26 08:52:48 +02:00
Peter Rustler 8845e493d7 Add filter support for numeric absolute filters for monitored items 2018-05-17 17:11:07 +02:00
StalderT 0803bebc46 partial fix for #1698 2018-03-30 01:08:17 +02:00
Stefan Profanter fb64f4a9bb Various fixes for doc generation 2018-03-22 17:14:04 +01:00
Stefan Profanter 496d21d0b2 Resolve circular include by extracting client config 2018-03-22 13:41:21 +01:00
Jonas Green 1e667aeb38 Added callback function to get client config from config plugin
The server implementation needs to initalize a client when it
shall register itself to a discovery server. To avoid including a
private header file of the plugin a callback function has been
declared in the server header file to be implemented by the plugin
implementation. This callback function are called by the server
when it shall initialize a client.
2018-03-22 13:41:21 +01:00
Root-Core 961f0dbde8 Fixed __COUNTER__ macro for PowerPC compilation
A "dirty" fix to allow GCC 4.2.2 compilation by aliasing `__COUNTER__` with `__LINE__`.
2018-03-21 14:36:22 +01:00
Julius Pfrommer 46979d3b87 replace alloca with variable-length arrays and alloca as fallback 2018-03-16 15:33:02 +01:00
Mark Giraud 12cc370a3b Add interval to improve performance when dumping with valgrind 2018-03-16 11:14:56 +01:00
Julius Pfrommer 34cff1d606 Add a context for the AccessControl plugin 2018-03-06 12:49:17 +01:00
Julius Pfrommer 6bfedfa95d add static string definition macro 2018-03-06 12:49:17 +01:00
Mark Giraud 37e8654da8 SecurityPolicy Interface change (#1613)
* Always use functions to get sizes and lengths.

This makes for better encapsulation and unifies the interface usage for
asymmetric and symmetric modules

* Add nonce length to SecurityPolicy and use it.

Previousely the key length was used as nonce length, which was
incorrect.
This only worked for basic128rsa15.

* Add certificate signing algorithm to interface

* Remove unnecessary functions from SecurityPolicy interface

* allow session to switch over to a new securechannel
2018-02-26 22:14:39 +01:00
StalderT 7515ed1a90 change 16664 to 4840 2018-02-26 08:29:56 +01:00
Stefan Profanter f3df55da6a Merge pull request #1603 from open62541/feature/begin_with_add_parent
forbid duplicate references and change _begin to also add parent references
2018-02-22 11:21:08 +01:00
Jannis Voelker 2fc7c34b86 Fix response type in UA_Client_MonitoredItems_modify 2018-02-20 15:12:04 +01:00
Stefan Profanter f4a020abd2 _begin also needs to add the parent reference.
See the corresponding discussion in #1565
2018-02-20 15:08:31 +01:00
Thomas Bender 50115bb143 Add UA_ExpandedNodeId_equal and UA_QualifiedName_equal 2018-02-19 23:32:09 +01:00
StalderT 39d12d3451 Add callback for subscription inactivity 2018-02-18 13:00:21 +01:00
Julius PfrommerandStalderT 746ad7ede8 New Subscriptions and MonitoredItems Client API
Co-authored-by: StalderT <github@netsolux.ch>
2018-02-18 13:00:21 +01:00
StalderT b5dc40efef Add async subscription handling for the client 2018-02-18 13:00:21 +01:00
basyskom-jvoe cdf91fe9ec Fix android build with ndk r16b (#1591)
- __FLOAT_WORD_ORDER' is not defined, evaluates to 0 [-Werror,-Wundef]
- error: #warning is a language extension [-Werror,-Wpedantic]
2018-02-15 14:29:41 +00:00
Mark Giraud 15346f6383 Add flag for interactive valgind dumps (#1593)
* Add flag for interactive valgind dumps

* Mark UA_ENABLE_VALGRIND_INTERACTIVE as advanced
2018-02-15 14:28:03 +00:00
Thomas Bender 7859f9f4b3 adapted "UA_Server_addMethodNodeEx" signatures (header/impl) 2018-02-06 08:26:18 +01:00
Thomas Bender de16606199 Merge remote-tracking branch 'master' into feature/addmethodnodeex 2018-02-06 08:18:38 +01:00
Stefan Profanter 3af3d9d969 Also add client to monitoredEvent callback 2018-02-05 22:41:28 +01:00
StalderT 65db398dcb add client to dataChangeHandler 2018-02-05 22:41:28 +01:00
Mark Giraud 1600d8056e Actually verify certificates when creating a securechannel (#1583)
* Actually verify certificates when creating a securechannel

* Fix testing policy
2018-02-05 22:39:43 +01:00
Thomas Bender c6e18a962e inlined UA_Server_addMethodNode() 2018-02-05 11:15:28 +01:00
Thomas Bender 5268f1b134 added "UA_Server_addMethodNodeEx" to public API:
- allows direct specification of requested node IDs for method nodes so that there is no requirement of public "UA_Server_addMethodNode_finish" any more
- old API and kept untouched (backward compatability)
- redirected "UA_Server_addMethodNode(_finish)" to use new "UA_Server_addMethodNodeEx(_finish)" (with UA_NODEID_NULL as requested node IDs which keeps old behaviour)
2018-02-02 14:23:22 +01:00
Stefan Profanter 0dd0f444b4 Use _begin and _finish methods to ensure inherited children are not created multiple times
fixes #1547
2018-02-02 11:39:12 +01:00
Thomas Bender 1a868324b3 network layer uses configured server logger (with fallback to UA_Log_Stdout) 2018-02-01 16:25:02 +01:00
StalderT 5508c34f80 fix UA_Client_disconnect/close crash (#1562)
* fix UA_Client_disconnect/close SIGSEGV

* add a unit test
2018-02-01 09:35:22 +01:00
Stefan Profanter c2305461a3 Copyright holders at beginning of file (#1514)
* New script to add copyright names (see #1456)

* Use file history instead of git blame

* Order authors by first commit and modify displayed names

* fixup

* Add generated copyright holders
2018-01-26 14:14:25 +01:00
StalderT 7332a100ee remove unneeded whitespaces (#1552)
* remove unneeded whitespaces

* fix generate_datatypes.py
2018-01-26 14:12:36 +01:00
cabralfortiss 7fac71131f First Changes for freeRTOS (#1546) 2018-01-26 14:11:55 +01:00
Julius Pfrommer 78538baae7 add server-config to the docs 2018-01-24 17:51:03 +01:00
Jannis Voelker bcb30aa72d Add client context to UA_Client
The client context is set in UA_ClientConfig and can be
retrieved using UA_Client_getContext().
2018-01-22 18:21:05 +01:00
Julius Pfrommer 432cc0c85e encoding without thread-local variables 2018-01-22 13:10:21 +01:00
Root-Core 47d55bf8e0 Fixed descriptions for some status codes
The OPC Foundation provides an invalid (non escaped) CSV for status codes. This destroyed some generated status code descriptions.
2018-01-19 09:10:55 +01:00
Infinity95 adf793b2ef Implement SecurityPolicy#Basic128Rsa15 with mbedTLS
seed rng correctly, don't use md_internal.h

move sha1 message digest into policy context

less casting in methods
2018-01-17 15:05:00 +01:00
Mark 653b54ea5d make channelcontext pointer non-const 2018-01-17 15:05:00 +01:00
StalderT 84a8d025b2 add UA_Client_Subscriptions_removeMonitoredItems 2018-01-16 10:46:58 +01:00