Commit Graph
185 Commits
Author SHA1 Message Date
Bin Lan 19b3dc0945 add build/test for security policy source code using openssl in Linux. 2020-03-18 10:36:45 +01:00
Bin Lan f71912485e add security policy Basic256Sha256 and PKI support with OpenSSL provider. 2020-03-12 07:43:27 +01:00
Julius Pfrommer fec7850869 fix(ci): Use the regular valgrind from homebrew on MacOS X
The git repository for the HEAD version is unstable.
2020-03-11 16:25:42 +01:00
Sameer AL-Qadasiandandr ff87c2876d (feat): First Implementation of Alarms and Conditions (#2083)
* Update src/server/ua_subscription_events.c

* Alarms and Conditions First Implementation

implemented facets:
1- A&C Base Condition Server Facet (only mandatory)
2- A&C Enable Server Facet (only mandatory)
3- A&C Alarm Server Facet (only mandatory)
4- A&C Acknowledgeable Alarm Server Facet (complete, with ConfirmedState and Confirm Method)

Notes:
1) Change in ua_subscriptions_monitoreditem.c is related to issue #2114. Without that fix, the server crashes when generating OverflowEvents.

2) The Events: RefreshStart and RefreshEnd are abstract according to the specification. So to make it possible to create instances of them the fix in function "create_event()" is added (change abstract attribute of the EventType to false).

@basysKom-jvoe, I will be glad if you help reviewing the code:)

* some fixes

Update src/server/ua_subscription_alarms_conditions.c

* correcting example name

adding function prototype

* some fixes

1) keep events and A&C disabled and NS0 reduced in main CMakeLists
2) enable A&C in test scripts (Travis and Veyor)

* Update ua_subscription_alarms_conditions.c

fix som error handling

* Update ua_subscription_alarms_conditions.c

* fixing issues from first review

1) calculate size of array
2) correct misspelling
3) correct some comments

* Update ua_subscription_alarms_conditions.c

to retrigger travis test.
14 - subscription_events test fails randomly!

* fix memory leak issues

the function UA_NodeId_copy was used multiple times, however,  the memory allocated is not freed because only numeric NodeIds were used in testing. So using nun numeric NodeIds will cause memory leak.
Next commit/version should fix that issue.

* review fixes: comments 1 and 2

1) use new server logger function (PR rebase).
2) use values instead of pointers in A&C API functions for consistency

* Review: reduce indent

reducing indent by using "continue" inside if statements in loops

* Update tutorial_server_alarms_conditions.c

modify includes

* update to upstream master and fix some A&C Module issues

* fix CI test and some review issues

* fix some review issues

the previous commits fix issues mentioned in comments:
- https://github.com/open62541/open62541/pull/2083#discussion_r241070233
- https://github.com/open62541/open62541/pull/2083#discussion_r241072127
- https://github.com/open62541/open62541/pull/2083#discussion_r241076137
- https://github.com/open62541/open62541/pull/2083#discussion_r241076137
- https://github.com/open62541/open62541/pull/2083#discussion_r241079915
- https://github.com/open62541/open62541/pull/2083#discussion_r241082415
- https://github.com/open62541/open62541/pull/2083#discussion_r241083539
- https://github.com/open62541/open62541/pull/2083#discussion_r284586642
- https://github.com/open62541/open62541/pull/2083#discussion_r284587406
- https://github.com/open62541/open62541/pull/2083#discussion_r284589129

not resolved yet, need further discussion:
- https://github.com/open62541/open62541/pull/2083#discussion_r241072659
- https://github.com/open62541/open62541/pull/2083#discussion_r241075205

* some modification after rebase

* remove unused code + some fixes

* some fixes and modifications

changes:
- fix conflicting variable names
- pass FieldNames directly without help variable in
  "UA_Server_setConditionField"
- remove unused code
- add some comments
- correct indentation

* fix issues mentioned in review

* enable setting ConditionId when creating Condition Instances

* fix issues based on review

- pass variant instead of void* and type when setting Condition Fields and their Properties.

- Change RefreshEvents IsAbstract attribute to "False" when creating the Condition instead of doing that when generating the event.

- comment issue #2114 fix out (it seems to work fine after recent commits).

- modify A&C example according to changes.

* use A&C public API to set condition fields and properties

* check for Null pointer before comparing NodeIds

Co-Authored-By: andr <aandranikk@gmail.com>

* correct Typo

Co-Authored-By: andr <aandranikk@gmail.com>

* rebase + fix issues from review

some issues need further discussion before fixing them. Please see:
https://github.com/open62541/open62541/pull/2083#discussion_r326857289
https://github.com/open62541/open62541/pull/2083#discussion_r326857373

* fixup after rebase
2019-12-17 20:28:40 +01:00
Julius Pfrommer 91f6a20c63 Merge branch '1.0' 2019-12-16 21:09:21 +01:00
Stefan Profanter c5d7624115 fix(docker): Move Docker files into separate directory and fix Docker Cloud build 2019-11-06 11:28:06 +01:00
Stefan Profanter 8bcea80e8b ci(debian): Split debian build into separate build and move to azure pipeline 2019-10-26 09:22:26 +02:00
Lukas M 7ff1fe598f feat(pubsub): Add MQTT support
- Rebase to Master branch
 - Modify Server APIs un tutorial_pubsub_mqtt.c
 - TODO:Resolve unit test error in check_pubsub_connection_mqtt.c
2019-10-10 07:08:13 +02:00
Stefan Profanter 01fae7b5b4 Merge remote-tracking branch '1.0' into master 2019-09-02 14:34:18 +02:00
Stefan Profanter 5284910907 fix: Start ctt server as default application in docker container
The container can be built with:
`docker build -t open62541 . && docker run -p 4840:4840 open62541`
2019-08-30 21:27:29 +02:00
Stefan Profanter cfb89f1891 fix(ci): Also push to pack branch on tag release build 2019-08-29 18:35:21 +02:00
Ubuntu 2b3a8cbc91 feat(server): Adding multithreading architecture with additional refactoring 2019-08-19 23:36:03 +02:00
Stefan Profanter bfdb9953dd Merge remote-tracking branch 'upstream/1.0' into master 2019-08-14 18:17:47 +02:00
Stefan Profanter 384cc5ad56 ci: Remove duplicate unshallow fetch 2019-08-14 10:14:50 +02:00
Stefan Profanter 044140acbe ci: Rename debian package to libopen62541 and correct debian recipe 2019-08-13 06:21:47 +02:00
Stefan Profanter 86aa563314 ci: Add push of -pack branch 2019-08-13 06:21:47 +02:00
Stefan Profanter f88898d256 ci: Automatically set debian package version 2019-08-09 12:58:20 +02:00
Stefan Profanter c23b1bafaf CI: Add 1.0 branch to push_doc 2019-07-23 11:15:22 +02:00
Stefan Profanter a38db76e16 CI: Pin docutils to 0.14 2019-07-22 12:46:44 +02:00
Stefan Profanter 7cf9ab6d65 Travis: Different way to set custom hostname on OSX builds
Travis support says:
the `hostname` command is actually a super ephemeral way to change it. There’s a different way:
`sudo scutil --set HostName <new host name>` which is more permanent and potentially more resilient
2019-05-28 08:14:12 +02:00
Stefan Profanter a798be865b Fuzz: Add check_build script to verify successful build 2019-05-06 14:55:48 +02:00
Julius Pfrommer 9bfb981bd4 Remove Python-Sphinx from the OSX CI dependencies 2019-04-27 15:57:04 +02:00
Julius Pfrommer 4e38d391dd Examples: Remove certificate example
The example is also covered by the server_ctt and encryption examples.
2019-04-23 00:41:32 +02:00
Stefan Profanter e806a0b255 CI: Disable valgrind on OSX since it produces many false positives 2019-04-17 22:23:02 +02:00
Stefan Profanter 9dd5a34ca4 CI: Various OSX build fixes 2019-04-17 22:23:02 +02:00
Stefan Profanter 4630139dd9 PubSub: Check for null nodes and fix memory leak. Only allow PubSub information model if not minimal NS0 2019-04-04 12:30:18 +00:00
Stefan Profanter c5311e3a34 CI: Run unit tests with minimal NS0 2019-04-04 12:30:18 +00:00
Stefan Profanter 6d2381ddfe CI: Update travis URL 2019-04-03 09:03:21 +02:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Stefan Profanter 1083c110b4 Travis: Reduce verbosity of bash commands 2019-03-21 20:16:31 +01:00
Stefan Profanter 238f539666 Travis: Use newer clang-format 2019-03-20 09:20:30 +01:00
Stefan Profanter 3fed1c0bfd CI: Create pastebin patch for clang-format output 2019-03-14 15:47:04 +01:00
Stefan Profanter 0b9d42a171 CI: Add another wording for correct clang format 2019-03-14 11:27:56 +01:00
Stefan Profanter f378380f31 Add command how to fix issue 2019-03-13 16:12:17 +01:00
Stefan Profanter 54ab94e860 Better adapt clang-format to current stack formatting and ignore deps in clang-format 2019-03-13 16:12:17 +01:00
Benjamin Bara 648498145b CMake: add static analyzer during build process (by option) 2019-03-13 14:51:01 +01:00
Benjamin Bara 8f90b67ff4 travis: include clang-format compatibility 2019-03-12 09:46:02 +01:00
Stefan Profanter da4f4e8f7e CI: Use absolute path in PATH variable to remove warnings from gcov 2019-03-07 08:12:36 +01:00
Patrick Gansterer a926ec413f JSON: enable coverage report for encoding/decoding code 2019-03-03 21:37:35 +01:00
Stefan Profanter 031984ef16 CI: Test whole examples folder with installed lib 2019-02-28 09:07:40 +01:00
Silvio Traversaro 73c9e78dfd Add NAMESPACE open62541:: to exported CMake targets
Fix https://github.com/open62541/open62541/issues/2415
2019-02-15 11:59:01 +11:00
Ralph Lange 30a6638e42 CI: Optimize/minimize compiler settings and pre-installs (Travis) 2019-02-07 21:28:35 +01:00
Ralph Lange 54a52ba690 CI: Clean-up and document build matrix (Travis) 2019-02-07 21:28:35 +01:00
Ralph Lange d6b3f97a5a CI: Streamline analysis and install builds (Travis) 2019-02-07 21:28:35 +01:00
Ralph Lange 4fe0f626de CI: Fix typo in linux build script (Travis) 2019-02-07 21:28:35 +01:00
Nik625 81958f67ca Support of PercentDeadband feature 2019-01-11 12:03:34 +01:00
Stefan Profanter f16afc7d6e CI: Remove duplicate full NS0 build test 2019-01-08 13:11:42 +01:00
Stefan Profanter 3fe7ecc9fa CI: Add codecov.io
See https://codecov.io/gh/open62541/open62541
2019-01-07 20:17:40 +01:00
Stefan Profanter b4c8443fa9 CI: Remove coverity since it does not integrate well.
The majority of the coverity features are covered by other tools we already use.
2019-01-07 20:17:40 +01:00
Stefan Profanter 17e5f6cba4 CI: Sort CMake options alphabetically 2019-01-03 13:52:07 +01:00