Stefan Profanter
f1f35981ea
fix(nodeset-compiler): Use ParentNodeId attribute for parent node where possible
2020-04-10 18:05:52 +02:00
Stefan Profanter
0a6ccdbe44
feat(server): Integrate node id header generation into nodeset compiler
2020-04-10 15:30:03 +02:00
Stefan Profanter
1bbcdcb370
fix(server): Add warning if fuzzing build is enabled
2020-04-09 21:23:42 +02:00
Alexander Bluhm
22e5e84525
build(openbsd): compile options
...
Special compiler flags for OpenBSD are no longer necessary. The
system compiler is now clang, and the default options used for other
operating systems work fine. On OpenBSD everything is compiled
with PIC anyway to allow random address layout. The current logic
was implemented in 4fbef71447 with
the commit message "try building as rpm" which makes no sense.
2020-04-09 13:09:14 +02:00
Sameer AL-Qadasi
aa03bcf3c4
fix(server): Fix ConditionId Search (Alarms and Conditions)
2020-04-09 11:40:34 +02:00
MartinaFelberFEM
2da82b1de0
fix(pubsub): Add UA_calloc param check ( #3270 )
...
Add checks to avoid calling UA_calloc with param num == 0.
Because the return value of UA_calloc is in this case implementation
defined.
2020-04-09 11:19:57 +02:00
Jonas Green
a0bb5be1c0
fix(server): Attach session to channel when activate it if no channel exists
...
While testing access rights we got UaExpert to perform a sequence
that we belive the open62541 server did not handle correctly:
1. OpenSecureChannel
2. CreateSession
3. ActivateSession
4. Some initial browsing/reading that eventually failed due to
limited access rights
5. CloseSecureCannel (session is now detached from the channel)
6. OpenSecureChannel
7. ActivateSession (same session id as activated in no. 3)
During the second ActivateSession the server failed the request
in UA_Session_generateNonce() as there was no channel attached to the
session. The session was detached from the secure channel when
UaExpert closed the channel in no. 5. This PR makes the session
attached to the new channel before generating the nonce.
2020-04-09 09:56:07 +02:00
Waheed Ejaz
2f57fd7590
feat(pubsub): add support for transportSettings of dataSetReader
2020-04-09 08:08:12 +02:00
wenshan1
7bf6a6c590
fix(plugin): Don't store pointer to SecurityPolicy in *_PolicyContext
...
The pointer to the SecurityPolicy is not stable.
See #3539 .
2020-04-07 20:07:48 +02:00
Selva Suba Jenifer Joseph
fbb4e0fe4d
test(PubSub): Add unit test case for XDP connection
...
- Unit test case to verify XDP connection
- Add README_pubsub_TSN.txt for executing the applications and unit tests
Change-Id: I7a05d2dcd8f7881f24a3c5a44560aad1b3971e41
2020-04-07 17:04:18 +02:00
Shriya Chaurasia
7d5b803a56
feat(PubSub): Modify application for XDP
...
- Modify Publisher and Loopback application for XDP
Change-Id: I1c33b072847a62372d24f6e76cbaae033da49b87
2020-04-07 17:04:18 +02:00
Selva Suba Jenifer Joseph
5d051fdbf9
feat(PubSub) XDP functionality with ETH over UADP
...
- New transport settings added for XDP functionality
- Moved both XDP config and xdpsocket to plugins
- Default values for defines in plugin
Change-Id: Ibd7760c9abab45c6f37ae324fec6dabc853cf797
2020-04-07 17:04:18 +02:00
Suriya Narayanan Parthasarathi Vimala
92504b2801
fix(PubSub): Application fix on double free
...
- Fix on Double free corruption
- Fix on REPEATED_NODECOUNTS from T1 to T8
Change-Id: I4428e868e11737cd1246b60d250b97ae83e8c564
2020-04-07 17:04:18 +02:00
Julius Pfrommer
cde04b932b
feat(tools): Usable pretty-printing for gdb
2020-04-05 08:58:16 +02:00
Julius Pfrommer
ec7ad1ed36
fix(core): UA_Guid_parse supports different endian achitectures
2020-04-05 08:58:16 +02:00
Jean-Joël Borter
2a94497793
fix(server): UA_DEPRECATED macro must be placed to the front for MSVC
2020-04-03 22:48:57 +02:00
Christian von Arnim
3598c1677e
Add UA_Server_writeDataValue
2020-04-03 12:51:14 +02:00
Julius Pfrommer
285637fc51
feature(core): Decrypt chunks before the entire message is complete
2020-04-02 00:11:22 +02:00
Julius Pfrommer
33bd9b0184
refactor(core): Simplify message assembly in SecureChannel
2020-04-02 00:11:22 +02:00
Julius Pfrommer
166f9370af
refactor(core): Remove unused definitions from ua_securechannel.h
2020-04-02 00:11:22 +02:00
Julius Pfrommer
0689567b20
refactor(core): Remove unused allowPreviousToken flag from SecureChannel
2020-04-02 00:11:22 +02:00
Julius Pfrommer
90df101f63
refactor(core): Detangle decryption from testing the sequence header
2020-04-02 00:11:22 +02:00
Julius Pfrommer
8fadb18199
refactor(core): Add MessageType and ChunkType to UA_Chunk
2020-04-02 00:11:22 +02:00
Julius Pfrommer
2248b82a4b
refactor(core): Rename ChunkPayload to Chunk
2020-04-02 00:11:22 +02:00
Julius Pfrommer
312a4351cc
refactor(core): Rename packet to buffer in SecureChannel
2020-04-02 00:11:22 +02:00
Julius Pfrommer
cf5867a981
feature(test): Set array entries for chunking tests
2020-04-02 00:11:22 +02:00
Julius Pfrommer
16c10d6875
fix(core): Remove double semicolon typos
2020-04-02 00:11:22 +02:00
Julius Pfrommer
be65f1202c
refactor(plugin): Shorten overlong lines in plugins/ua_pubsub_udp.c
2020-03-31 22:33:03 +02:00
Julius Pfrommer
1b404328a0
fix(pubsub): Allow publishing on a unicast address
...
Only create a warning. Fixes #3530 .
2020-03-31 22:33:03 +02:00
Julius Pfrommer
e2cea8bf40
refactor(server): Cosmetic cleanup in ua_services_attribute.c
2020-03-29 21:27:39 +02:00
Julius Pfrommer
73ec92b008
refactor(server): Use ziptree macros in ua_services_view.c
2020-03-29 21:27:39 +02:00
Julius Pfrommer
50f7157d57
feat(server): Use BrowseName hash for BrowsePath lookup
2020-03-29 21:27:39 +02:00
Julius Pfrommer
01f74d89d0
fix(server): Protect against BadOutOfMemory in Write Service
2020-03-29 21:27:39 +02:00
Julius Pfrommer
287c5ad69b
fix(server): Make the BrowseName of Nodes immutable
...
The BrowseName is tracked in binary trees in other nodes for fast
lookup. We would have to reinsert the node to all references lists
of other nodes pointing here.
2020-03-29 21:27:39 +02:00
Julius Pfrommer
3b74350677
feat(server): Sorted tree for fast lookup of BrowseNames
2020-03-29 21:27:39 +02:00
Julius Pfrommer
895614b4d1
feat(core): Allow elements with the same key in ziptree.h
2020-03-29 21:27:39 +02:00
Julius Pfrommer
cbc20dbf2c
refactor(server): Break overlong lines in ua_nodes.c
2020-03-29 21:27:39 +02:00
Julius Pfrommer
6f753acc11
refactor(core): Better member names for UA_ReferenceTarget
...
Disambiguate the names in preparation of future features.
2020-03-29 21:27:39 +02:00
Julius Pfrommer
cfe1c0eeee
feat(core): Add UA_QualifiedName_hash
2020-03-29 21:27:39 +02:00
Christian von Arnim
17f0e045fc
Fix: NodesetGenerator QualifiedName: 'NoneType' object has no attribute 'name'
2020-03-29 11:50:11 +02:00
MartinaFelberFEM
6608c28ebf
fix(plugin): udp - join multicast group to configured interface ( #3505 )
...
If the PubSub connection configuration defines a specific network
interface (optional parameter), we want to set this interface not only
for outgoing, but for incoming traffic too.
2020-03-26 13:07:16 +01:00
Julius Pfrommer
0cd099611e
refactor(doc): Add generated type docs directly in types.h
2020-03-23 19:54:26 +01:00
Julius Pfrommer
af63a3f133
fix(doc): Add util.h to the generated documentation
2020-03-23 19:54:26 +01:00
Julius Pfrommer
23ef302bbf
refactor(doc): Improve line lengths in types.h
2020-03-23 19:54:26 +01:00
Julius Pfrommer
a2b8f3f13c
fix(doc): Correct section levels in nodestore.h
2020-03-23 19:54:26 +01:00
Julius Pfrommer
da22d9d742
feature(core): Add UA_RelativePath_parse
2020-03-23 19:54:26 +01:00
Julius Pfrommer
7ace0022bb
refactor(core): Use custom buffer management for NodeId parsing
2020-03-23 19:54:26 +01:00
Julius Pfrommer
7aee335598
refactor(core): Rename UA_NodeId_print for consistency
2020-03-23 19:54:26 +01:00
Julius Pfrommer
2cb1c354ee
feature(core): Add UA_ByteString_fromBase64
2020-03-23 19:54:26 +01:00
Julius Pfrommer
835f950c9d
refactor(core): Consistent naming scheme for UA_ByteString_toBase64
2020-03-23 19:54:26 +01:00