Commit Graph

1081 Commits

Author SHA1 Message Date
Julius Pfrommer
5364fdd893 fix(build): Only include PubSub in the amalgamation if it is enabled 2025-05-28 08:03:06 +02:00
Florian La Roche
f2d2faa765 refactor(build): change libmdns target name
A few small changes to CMakeLists.txt:
- Compiling open62541 you can see it mentioning a target of
  "liblibmdnsd". Seems "add_library()" in cmake should be
  changed from libmdnsd to only mdnsd.
- Remove trailing whitespace.
- Change tabs into spaces.

Signed-off-by: Florian La Roche <f.laroche@pilz.de>
2025-05-26 16:33:44 +02:00
Noel Graf
2f80c19b85 refactor(tools): Simplify code generation in nodeset injector 2025-05-07 10:19:00 +02:00
Julius Pfrommer
eedd7e8998 refactor(tools): Refactor ua_generate_nodesets and simplify Nodeset injector 2025-05-07 08:13:16 +02:00
Marwin Glaser
82b001290b Merge remote-tracking branch 'upstream/1.4' into merge_1.4 2025-04-23 00:52:31 +02:00
Julius Pfrommer
52abf05315 Merge remote-tracking branch 'origin/1.4' into merge_14_master_27 2025-04-23 00:45:27 +02:00
Marwin Glaser
48d8d5b465 refactor(build): remove cmake 3.20 requirement 2025-04-22 17:23:59 +02:00
Julius Pfrommer
12fddf2327 refactor(build): Remove EXPERIMENTAL flag from XML encoding, enable by default 2025-04-05 13:23:12 +02:00
Julius Pfrommer
c5f59df0a1 refactor(build): Simplify the hardened build setup / Remove workaround for CMake < 3.9 2025-03-25 16:35:23 +01:00
Ómar Högni Guðmarsson
9056bbf887 fix(build): compilation on macos
After some commits on the master branch compilation
for macos was not working. This PR restores macos
to a building state.

Co-authored-by: Jón Bjarni Bjarnason <jon@centroid.is>
2025-03-18 14:58:00 +01:00
Julius Pfrommer
2aa764b640 refactor(build): Bump version to v1.4.11 2025-03-14 21:08:14 +01:00
Noel Graf
b54aa99257 feat(deps): Add the musl inet_pton implementation as a standalone implementation
fix conversion error
2025-03-10 15:33:25 +01:00
Julius Pfrommer
b8af0898f2 refactor(build): Remove the dependency on libxml2 2025-03-02 13:38:18 +00:00
Julius Pfrommer
05c3e632c1 feat(tests): Add check_yxml.c unit test 2025-03-02 13:38:18 +00:00
Srdjan Usorac
3ede72761e feat(core): Add XML en/decode support until ExtensionObject
* Add XML en/decode support for ByteString, StatusCode,
  QualifiedName, and LocalizedText

* Skip support for XmlElement

Signed-off-by: Srdjan Usorac <uso@keba.com>
2025-03-02 13:38:18 +00:00
Srdjan Usorac
24eb71bbe8 feat(core): Distinguish XML en/decoding of primitive and complex types
* Rework en/decoding to be in sync with the standard: https://reference.opcfoundation.org/Core/Part6/v104/docs/5.3

* Concept of handling complex data types (decodeXmlFields)

* XML parsing of values

* Rework Guid, NodeId, and ExpandedNodeId (complex types)

* Rework and add unit tests for complex data types

Signed-off-by: Srdjan Usorac <uso@keba.com>
2025-03-02 13:38:18 +00:00
Noel Graf
823a98d5ac feat(tools): Installation of the generated autoinject library 2025-02-26 15:20:04 +01:00
Julius Pfrommer
ed7105492e refactor(build): Also "tree-shake" unused code/data in the linker with --gc-sections 2025-02-19 11:27:27 +01:00
Julius Pfrommer
e10110d36e refactor(build): Only build _PARSING features if _JSON is enabled 2025-02-11 21:36:56 +01:00
Julius Pfrommer
d9facf4ac4 refactor(doc): Concatenate client docs into a single client.rst file 2025-02-11 21:36:56 +01:00
Julius Pfrommer
e617a34606 Merge remote-tracking branch 'origin/master' into merge_14_master_25 2025-02-04 13:33:31 +01:00
Julius Pfrommer
abc76d3374 refactor(core): Bump version to v1.4.10 2025-02-02 22:03:35 +01:00
Julius Pfrommer
186dd86fd6 Merge remote-tracking branch 'origin/1.4' into merge_14_master_25 2025-02-02 21:58:32 +01:00
Marwin Glaser
2fd81d6f3b feat(build): build amalgamation target by default if enabled 2025-01-28 23:35:27 +01:00
Tomi Takala
931cc824f7 fix(plugins): Rename dirent.h to tr_dirent.h 2025-01-14 22:50:18 +01:00
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
sbreuss
b69f612e26
fix(build): Set git version number only when open62541 is the main CMake project
This commit disables reading the version number from git when open62541 is not the main CMake project. This is necessary when including the project via CPM, as the version number would get overwritten by the git tag of the main project.
2025-01-08 11:40:50 +01:00
Julius Pfrommer
ced5913420 feat(core): Re-add the legacy JSON encoding (pre 1.05) via the UA_ENABLE_JSON_ENCODING_LEGACY option 2025-01-02 23:41:14 +01:00
Julius Pfrommer
91392b4855 refactor(core): Move ua_types_encoding_json.c -> ua_types_encoding_json_105.c to prepare having the old encoding in parallel 2025-01-02 23:41:14 +01:00
Vasilij Strassheim
aa52264510 build(nc): fix UA_FILE_NS0_PRIVATE variable unset
According to the CMake documentation: "unsetting a normal variable can expose
a cache variable that was previously hidden". This can lead to wrong build
results if UA_NAMESPACE_ZERO is changed to FULL after configuring the project
with default REDUCED value. This happens e.g. if ccmake is used like shown in
the documentation.
Set UA_FILE_NS0_PRIVATE to "" like proposed in the CMake documentation to
prevent this behavior.

Signed-off-by: Vasilij Strassheim <vasilij.strassheim@linutronix.de>
2025-01-02 21:29:26 +01:00
Vasilij Strassheim
6e1556dd9b refactor(server): Add preparations for avahi based mDNS plugin
Currently a fork of mdnsd library is used to register and discover servers on
the network. Since this fork is not maintained anymore a switch to another
library is necessary.
If avahi daemon is already running on the system, it can be used to register
the servers on network. Add mDNS build option and a copy of mDNS file as
preparation for an additional avahi based mDNS plugin.

Signed-off-by: Vasilij Strassheim <vasilij.strassheim@linutronix.de>
2025-01-01 11:57:50 +01:00
Julius Pfrommer
c29c0901f7 refactor(core): Use the utf8 decoding in /deps for JSON 2024-12-23 01:06:33 +01:00
Julius Pfrommer
6c5a3cb242 refactor(build): Use the POSIX architecture as default 2024-12-10 08:28:30 +01:00
Julius Pfrommer
21e9c240ec
Merge pull request #6875 from jpfr/merge_14_master_24
Merge 1.4 to master
2024-11-29 23:56:34 +01:00
Julius Pfrommer
24a0b36a56 refactor(build): Remove hardening options
The package build systems are re-adding themselves the recommended
compiler options.
2024-11-29 21:51:08 +01:00
Julius Pfrommer
3785ed5c4d Merge remote-tracking branch 'origin/1.4' into merge_14_master_24 2024-11-29 21:50:04 +01:00
Julius Pfrommer
f42c264d8d
refactor(build): Bump version to v1.4.8 2024-11-25 13:09:34 +01:00
Jannis Völker
9dff1293d1 Fix amalgamation order
ua_securitypolicy_none.c requires UA_*_LoadCertificate() if encryption is enabled.
2024-11-25 13:08:35 +01:00
Julius Pfrommer
7e4e0db5bd fix(build): Fix caching of UA_FILE_NS0 variable
The caching lead reconfigurations in the CMake GUI to be ignored.
2024-11-23 17:28:03 +01:00
Julius Pfrommer
3457f1e4fd fix(build): Remove CMake warnings concerning PRE_BUILD custom command options 2024-11-23 17:28:03 +01:00
Goetz Goerisch
7494e335e1 fix(build): align inclusion of architecture.h
Co-authored-by: Noel Graf <69737119+NoelGraf@users.noreply.github.com>
Signed-off-by: Goetz Goerisch <g.goerisch@vdw.de>
2024-11-21 23:20:40 +01:00
Noel Graf
e0c31d83cb feat(plugins): Support certificate generation with mbedTLS. (#6145)
(cherry picked from commit 1f19a8e484)
2024-11-21 23:20:40 +01:00
Noel Graf
31947a9360 fix(nodesetinjector): Fix CMake warning by removing the PARENT_SCOPE option, as there is no further parent scope 2024-11-18 16:36:13 +01:00
Julius Pfrommer
bfaec719ad Merge remote-tracking branch 'origin/1.4' into merge_14_master_24 2024-11-15 21:15:00 +01:00
Julius Pfrommer
a450dcf781
refactor(build): Bump version to v1.4.7 2024-11-13 15:54:17 +01:00
Julius Pfrommer
871f6ebf96 refactor(build): Only build the source files for the specified architecture 2024-11-06 23:38:08 +01:00
Julius Pfrommer
f1bffdb0f0 fix(build): Enable building static library on Win32 2024-11-06 22:07:43 +01:00
Julius Pfrommer
805c1ab17a fix(plugins): Reenable writing rejected certificates to a reject folder 2024-11-05 00:38:08 +01:00
Thomas Zeschg
308d8e2759 feat(plugin): add OpenSSL plugin for ECC P-256
Add http://opcfoundation.org/UA/SecurityPolicy#ECC_nistP256
policy support in OpenSSL plugin.
2024-11-04 12:44:46 +01:00
Julius Pfrommer
f3c31adb46 refactor(tools): Rename ua-tools to ua-cli 2024-10-29 22:34:54 +01:00