Commit Graph

17 Commits

Author SHA1 Message Date
Julius Pfrommer 6a3cc6c8d0 refactor(core): Remove certificate verification from SecurityPolicy in favor of global plugin 2020-01-25 19:33:26 +01:00
Julius Pfrommer 5856ceb003 refactor(server): Rename deleteMembers to clear in UA_SecurityPolicy 2019-10-03 15:14:24 +02:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Stefan Profanter 880b5fb33c Merge remote-tracking branch 'upstream/0.3' into feature/unit-tests/securechannel 2018-04-12 11:56:50 +02: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
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
Mark 653b54ea5d make channelcontext pointer non-const 2018-01-17 15:05:00 +01:00
Mark 1764a93548 Added sendSymmetric tests for mode and parameters 2017-12-11 15:39:56 +01:00
Mark 6cd8c3e1c4 Fix #1402 2017-12-05 10:40:42 +01:00
Mark b0a358d4c5 Added tests for the generateNonce function 2017-11-30 10:08:50 +01:00
Mark 3d6ad6a0cb Add tests and possibility to set key sizes in test
New tests that test for correct message structure and correct padding calculation.
Also, it is now possible to set key sizes and so forth in each test.
Defaults are provided by the setup functions.
2017-11-30 10:08:50 +01:00
Mark 0cabd40863 Modified testing NL and added SecureChannel test.
The testing NetworkLayer now writes the data it 'Sends' into a buffer,
so we can check the buffer in our unit tests.
The new test checks if the headers etc. are encoded correctly and
if the encryption functions are called for the correct data.
2017-11-30 10:08:50 +01:00
Mark 7b80c5e44a Fix compile and analysis errors 2017-11-30 10:08:50 +01:00
Mark de7f8eeff3 Start adding tests for sendAsymmetricOPNMessage 2017-11-30 10:08:50 +01:00
Mark 238efcede8 Added assertions to testing policy 2017-11-30 10:08:50 +01:00
Mark e7f80f9779 -Added testing SecurityPolicy
-Added generateNewKeys test
2017-11-30 10:08:50 +01:00