25 Commits
Author SHA1 Message Date
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
Julius Pfrommer 97c90048f7 use a fixed send buffer for the testing connection 2017-12-23 21:19:22 +01:00
tbeu 983f956003 Fix typos 2017-12-13 09:15:49 +01:00
Julius Pfrommer e74b4bf832 simplify datetime handling. 2017-12-12 22:09:55 +01:00
StalderT 12be0ad68c add timezone to the logs 2017-12-12 22:09:55 +01:00
StalderT 3e51e870bf win32 change gmtime to gmtime_s 2017-12-12 22:09:55 +01:00
StalderT 26b3165821 fix localtime in logger 2017-12-12 22:09:55 +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
StalderT 6941fe4708 fix select test timing 2017-12-02 18:28:17 +01:00
Jose Cabral 6c82b082c8 Fix missing code for VxWorks 2017-12-01 16:13:19 +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
Stefan Profanter eb26a1e34b Untabify 2017-11-22 15:57:03 +01:00
Stefan Profanter 3619afb6bd Add unit test for windows 2017-11-22 15:56:50 +01:00
Julius Pfrommer 6278950c4b simplify client securechannel test (#1385)
* simplify client securechannel test

* rename sleeping on simulated testing clock to UA_fakeSleep

* let the server start before calling with the client
2017-11-21 12:52:23 +01:00
Mark 1b6c0554cb Move tests into subdirectories for better organization 2017-11-08 10:29:23 +01:00